has('twig') && $container->has('profiler')) { return; } $container->removeDefinition(ProfilerController::class); } }