We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update package from 1.3.0 to 1.3.1 Have private package with custom config group like "yii2-common"
{ "extra": { "config-plugin-options": { "source-directory": "config" }, "config-plugin": { "yii2-common": [ "yii2-common.php" ] } } }
and load this like:
$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
Config works.
Uncaught ErrorException: The "yii2-common" configuration group does not exist. in /var/www/champ/vendor/yiisoft/config/src/FilesExtractor.php:169
The text was updated successfully, but these errors were encountered:
yiisoft/config
Done by #152
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: