Skip to content

Commit b26fa15

Browse files
committed
remove getContainer overwrites in tests
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, see symfony/symfony#31202
1 parent 105a537 commit b26fa15

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\app;
1313

1414
use Symfony\Component\Config\Loader\LoaderInterface;
15-
use Symfony\Component\DependencyInjection\ContainerInterface;
1615
use Symfony\Component\Filesystem\Filesystem;
1716
use Symfony\Component\HttpKernel\Kernel;
1817

@@ -99,13 +98,4 @@ protected function getKernelParameters(): array
9998

10099
return $parameters;
101100
}
102-
103-
public function getContainer(): ContainerInterface
104-
{
105-
if (!$this->container) {
106-
throw new \LogicException('Cannot access the container on a non-booted kernel. Did you forget to boot it?');
107-
}
108-
109-
return parent::getContainer();
110-
}
111101
}

0 commit comments

Comments
 (0)