Skip to content

Commit

Permalink
minor #2071 fix preview error controller compat test (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x branch.

Discussion
----------

fix preview error controller compat test

Commits
-------

4927cbe fix preview error controller compat test
  • Loading branch information
xabbuh committed Jan 31, 2020
2 parents fc59686 + 4927cbe commit df7dacd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Tests/Functional/app/AppKernel.php
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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,
]);
}
});
}

Expand Down

0 comments on commit df7dacd

Please sign in to comment.