$yiiConfig = new Config(
paths: new ConfigPaths(__DIR__ . '/../..'),
environment: YII_ENV,
modifiers: [
RecursiveMerge::groups('yii2-common', 'yii2-backend'),
],
mergePlanFile: 'config/.merge-plan.php',
);
$commonConfig = $yiiConfig->get('yii2-common'); // exception, but this group exist in several packages
What is the expected result?
Config works.
What do you get instead?
Uncaught ErrorException: The "yii2-common" configuration group does not exist. in /var/www/champ/vendor/yiisoft/config/src/FilesExtractor.php:169
What steps will reproduce the problem?
Update package from 1.3.0 to 1.3.1 Have private package with custom config group like "yii2-common"
and load this like:
What is the expected result?
Config works.
What do you get instead?
Uncaught ErrorException: The "yii2-common" configuration group does not exist. in /var/www/champ/vendor/yiisoft/config/src/FilesExtractor.php:169
Additional info