Skip to content

Commit 5ef9390

Browse files
committed
remove getContainer overwrites in tests
Since 5.0 the parent implementation throws an exception anyway making the overwrites obsolete, see symfony#31202
1 parent 22f1076 commit 5ef9390

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/Symfony/Bundle/FrameworkBundle/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
}

src/Symfony/Bundle/SecurityBundle/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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy