stable

Clone or download

Read-only

chore: Configure theme variant via config-set

Instead of forcing platform administrators to edit `local.inc` file, we should let them configure allowed and default variants via `tuleap config-set`. This has the advantage to be able to validate what they are trying to configure (typo, inconsistency, …). No functional changes, current configuration is kept without doing anything. Part of request #31137: Ease configuration of available theme variants Change-Id: If20d981b1ff9ce16d9e35a9613b044f474d5c11f

Modified Files

Name
M src/common/Config/GetConfigKeys.php +1 −0 Go to diff View file
A src/common/Layout/ConfigAvailableThemeVariantValidator.php +64 −0 Go to diff View file
A src/common/Layout/ConfigDefaultThemeVariantValidator.php +52 −0 Go to diff View file
M src/common/Layout/ThemeVariant.class.php +20 −3 Go to diff View file
M src/etc/local.inc.dist +0 −13 Go to diff View file
A tests/unit/common/Layout/ConfigAvailableThemeVariantValidatorTest.php +65 −0 Go to diff View file
A tests/unit/common/Layout/ConfigDefaultThemeVariantValidatorTest.php +57 −0 Go to diff View file