diff --git a/src/DependencyInjection/CompilerPass/MenuCompilerPass.php b/src/DependencyInjection/CompilerPass/MenuCompilerPass.php index cef84d0..c5bc149 100644 --- a/src/DependencyInjection/CompilerPass/MenuCompilerPass.php +++ b/src/DependencyInjection/CompilerPass/MenuCompilerPass.php @@ -50,6 +50,8 @@ public function process(ContainerBuilder $container): void $menuConfigProviderDef->addMethodCall('addMenuConfig', [$name, $menuConfig]); } } + + $container->getParameterBag()->remove('dama.menu.config'); } protected function getReferenceFromConfigValue(ContainerBuilder $container, string $prefix, string $value): Reference