Skip to content

Commit df7dacd

Browse files
committed
minor #2071 fix preview error controller compat test (xabbuh)
This PR was merged into the 2.x branch. Discussion ---------- fix preview error controller compat test Commits ------- 4927cbe fix preview error controller compat test
2 parents fc59686 + 4927cbe commit df7dacd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
4444
use Symfony\Component\DependencyInjection\ContainerBuilder;
4545
use Symfony\Component\Filesystem\Filesystem;
46-
use Symfony\Component\HttpKernel\EventListener\ErrorListener;
4746
use Symfony\Component\HttpKernel\Kernel;
4847

4948
/**
@@ -102,12 +101,6 @@ public function registerContainerConfiguration(LoaderInterface $loader)
102101
$loader->load(function (ContainerBuilder $container) {
103102
$container->setParameter('container.autowiring.strict_mode', true);
104103
$container->register('logger', NullLogger::class);
105-
106-
if (isset($this->bundles['TwigBundle']) && class_exists(ErrorListener::class)) {
107-
$container->loadFromExtension('twig', [
108-
'exception_controller' => null,
109-
]);
110-
}
111104
});
112105
}
113106

0 commit comments

Comments
 (0)