diff --git a/Tests/Functional/app/AppKernel.php b/Tests/Functional/app/AppKernel.php index f18026a6e..415ef8178 100644 --- a/Tests/Functional/app/AppKernel.php +++ b/Tests/Functional/app/AppKernel.php @@ -43,7 +43,6 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Filesystem\Filesystem; -use Symfony\Component\HttpKernel\EventListener\ErrorListener; use Symfony\Component\HttpKernel\Kernel; /** @@ -102,12 +101,6 @@ public function registerContainerConfiguration(LoaderInterface $loader) $loader->load(function (ContainerBuilder $container) { $container->setParameter('container.autowiring.strict_mode', true); $container->register('logger', NullLogger::class); - - if (isset($this->bundles['TwigBundle']) && class_exists(ErrorListener::class)) { - $container->loadFromExtension('twig', [ - 'exception_controller' => null, - ]); - } }); }