-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] env var support broken in 3.3.7 and 3.3.8 #24020
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
Comments
@nicolas-grekas looks like the env placeholder is not replaced back properly anymore in the processed container after your fix. |
@gharlan can you share a reproducer please? |
It does not fix it. I can try to create a reproducer, but before, some infos about PropelBundle, maybe it already helps to find the reason: The PropelBundle writes the config to a parameter: And this parameter is read later and passed to the connection manager (Line 82): https://github.com/propelorm/PropelBundle/blob/3.0/PropelBundle.php#L57 When I add a breakpoint here, and look into In 3.3.6 the env vars are resolved ( |
OK, I can reproduce, working on it now. |
Now fixed in #24021 and also in propelorm/PropelBundle#461 |
This PR was merged into the 4.x-dev branch. Discussion ---------- Fixed configuration processing Not calling the `Extension::processConfiguration()` method prevents tracking env vars correctly, as spotted in symfony/symfony#24020. Commits ------- 095497c Fixed configuration processing
This can be closed @nicolas-grekas. |
@Simperfit Are you sure? #24021 isn't merged yet. |
… expose it (nicolas-grekas) This PR was merged into the 3.3 branch. Discussion ---------- [DI] Don't track merged configs when the extension doesn't expose it | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24020 | License | MIT | Doc PR | - This is driving me crazy :) Commits ------- a8e6aac [DI] Don't track merged configs when the extension doesn't expose it
I'm using sf flex with propel. This is part of my config:
With symfony/dependency-injection 3.3.7 and 3.3.8 I get this exception:
#24016 didn't fix this case.
When I switch back to 3.3.6 it works again.
ping @nicolas-grekas
The text was updated successfully, but these errors were encountered: