mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-17 20:52:14 +00:00
d14caf2f11
FeatureManager::registerRequirement established the interface for a requirement: its name and whether it's met. However, the Feature Manager also needs to handle scenarios where a requirement needs additional context before it can be considered met. That context may not be available when the application is booting, e.g. checking if the user is logged in; or the logic is complicated enough that it should be under test. Changes: - Add the Requirement interface and update FeatureManager to work with implementations of it - Maintain B/C by constructing an instance of a the SimpleRequirement DTO Bug: T244481 Change-Id: Id95d9e5d7125492968d0e15515224aadbc3075f8 |
||
---|---|---|
.. | ||
FeatureManagement |