Skip to content

Commit

Permalink
remove getContainer overwrites in tests
Browse files Browse the repository at this point in the history
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, see symfony/symfony#31202
  • Loading branch information
Tobion committed Apr 22, 2020
1 parent 105a537 commit b26fa15
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Tests/Functional/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
}

0 comments on commit b26fa15

Please sign in to comment.