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
After this, any changes to the root of the application in which the bundle is installed are ignored. Although it is declared that the settings in ../config/packages in the application should overwrite all changes made by the bundle.
After commenting the lines $container->import('. inside the bundle, the application settings are made as expected
How to reproduce
Combine public function prependExtension and $container->import('../config/packages/...);
Possible Solution
No response
Additional Context
Perhaps this is related specifically to vich_uploader
The text was updated successfully, but these errors were encountered:
I confirm this issue, and the reason is that $container->import() appends the config instead of prepending it, making it the preferred config in the stack, even over the app config (which is loaded earlier).
That's why we recently discouraged using $container->import() in prependExtensionsymfony/symfony-docs#19739.
But don't be sad π, you can use it starting with Symfony 7.1 #52843. Meanwhile, for previous Symfony versions, I've backported that feature into this package https://github.com/yceruto/micro-symfony, which fixes this issue. Otherwise, you can always use $builder->prependExtensionConfig() instead, with the actual limitations.
you can always use $builder->prependExtensionConfig() instead
@yceruto@xabbuh It seems to me that this method is also a bug. When trying to add a field that is not yet in the application configuration file (../configs/liip_imagine.yaml), it produces an error like
Symfony version(s) affected
6.4,7
Description
After this, any changes to the root of the application in which the bundle is installed are ignored. Although it is declared that the settings in ../config/packages in the application should overwrite all changes made by the bundle.
After commenting the lines
$container->import('.
inside the bundle, the application settings are made as expectedHow to reproduce
Combine public function prependExtension and $container->import('../config/packages/...);
Possible Solution
No response
Additional Context
Perhaps this is related specifically to
vich_uploader
The text was updated successfully, but these errors were encountered: