Closed
Description
Symfony version(s) affected
6.4,7
Description
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
class SomeBundle extends AbstractBundle
{
// ...
public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void
{
$container->import('../config/packages/vich_uploader.yaml');
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