mediawiki-skins-Vector/includes/FeatureManagement
Steph Toyofuku feb8cc90dc Allow disabling of night mode on certain pages via config
* Using the new ConfigHelper, support disabling night mode on certain
pages via configuration options
* In addition, adds test coverage for this case and the query parameter
case (in a new integration test file as we now require accessing the
service container for request context)
* Finally, supply a default configuration in skin.json with all the
values set to null

For the easiest possible approach while we evaulate our general feature
management system, this logic is handled inside of getFeatureBodyClass
using the new shouldDisable general function.  In the future, it may
make sense to break this out into its own requirement class, but for now
that feels premature

Bug: T359606
Change-Id: I3e7a4720ec3cc2afd9777e36f59aa56b682258f0
2024-03-28 16:37:30 -07:00
..
Requirements Separate generic ConfigHelper class from LimitedWidthContentRequirement 2024-03-20 00:23:51 +00:00
FeatureManager.php Allow disabling of night mode on certain pages via config 2024-03-28 16:37:30 -07:00
FeatureManagerFactory.php Create a FeatureManagerFactory 2024-03-08 20:28:31 +01:00
Requirement.php Normalise PHP namespaces used in Vector 2022-05-23 09:32:40 +02:00
TODO.md featureManager: Add DynamicConfigRequirement requirement 2020-03-18 10:10:42 +00:00