You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Symfony 7.1 prependExtension with $container->import ignores the passed configuration.
In documentation it is mentioned:
Starting from Symfony 7.1, calling the import() method inside prependExtension() will prepend the given configuration. In previous Symfony versions, this method appended the configuration.
But the configuration of the file is completely ignored.
As example we use a bundle to share configuration for the messenger component.
Part of output of bin/console debug:config framework with symfony/dependency-injection: ^7.1
pschombara
changed the title
[DependencyInjection] Import config inside of bundle not working anymr
[DependencyInjection] Import config inside of bundle not working anymore
Aug 6, 2024
pschombara
changed the title
[DependencyInjection] Import config inside of bundle not working anymore
[DependencyInjection] Import config inside of a bundle does not work anymore
Aug 6, 2024
…pend extension method (yceruto)
This PR was merged into the 7.1 branch.
Discussion
----------
[DependencyInjection] Fix importing PHP configs in the prepend extension method
| Q | A
| ------------- | ---
| Branch? | 7.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#57936
| License | MIT
I missed this nesting case during #52843.
Commits
-------
94df570 Fix importing PHP config in prepend extension method
Symfony version(s) affected
7.1.0
Description
Since Symfony 7.1
prependExtension
with$container->import
ignores the passed configuration.In documentation it is mentioned:
But the configuration of the file is completely ignored.
As example we use a bundle to share configuration for the messenger component.
Part of output of
bin/console debug:config framework
withsymfony/dependency-injection: ^7.1
Part of output of
bin/console debug:config framework
withsymfony/dependency-injection: <7.1
How to reproduce
A bundle wich imports a PHP config file.
Example config file:
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: