Skip to content
New issue

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

Existed configuration group "does not exist" after update to 1.3.1 #151

Closed
tomaszkane opened this issue Nov 17, 2023 · 1 comment
Closed

Comments

@tomaszkane
Copy link

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"

{
  "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

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

Q A
Version 1.3.1
PHP version 8.0
Operating system KDE Neon
@vjik
Copy link
Member

vjik commented Nov 17, 2023

Done by #152

@vjik vjik closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants