From b26fa15f2f748430112731f51f2c3c70fc6bbe1a Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Wed, 22 Apr 2020 02:33:26 +0200 Subject: [PATCH] remove getContainer overwrites in tests Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, see https://github.com/symfony/symfony/pull/31202 --- Tests/Functional/app/AppKernel.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Tests/Functional/app/AppKernel.php b/Tests/Functional/app/AppKernel.php index c4e7e4a1..8e622282 100644 --- a/Tests/Functional/app/AppKernel.php +++ b/Tests/Functional/app/AppKernel.php @@ -12,7 +12,6 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional\app; use Symfony\Component\Config\Loader\LoaderInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpKernel\Kernel; @@ -99,13 +98,4 @@ protected function getKernelParameters(): array return $parameters; } - - public function getContainer(): ContainerInterface - { - if (!$this->container) { - throw new \LogicException('Cannot access the container on a non-booted kernel. Did you forget to boot it?'); - } - - return parent::getContainer(); - } }