From 4927cbe997181b6d14e3877ec321776fffdfbd03 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 31 Jan 2020 15:53:55 +0100 Subject: [PATCH] fix preview error controller compat test --- Tests/Functional/app/AppKernel.php | 7 ------- 1 file changed, 7 deletions(-) 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, - ]); - } }); }