Skip to content

Commit be7811a

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 14d7a3f commit be7811a

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
@@ -14,7 +14,6 @@
1414
use Psr\Log\NullLogger;
1515
use Symfony\Component\Config\Loader\LoaderInterface;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
17-
use Symfony\Component\DependencyInjection\ContainerInterface;
1817
use Symfony\Component\Filesystem\Filesystem;
1918
use Symfony\Component\HttpKernel\Kernel;
2019

@@ -97,13 +96,4 @@ protected function getKernelParameters(): array
9796

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

0 commit comments

Comments
 (0)