8000 remove getContainer overwrites in tests · symfony/symfony@7ecac97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ecac97

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

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,4 @@ protected function getKernelParameters(): array
9797

9898
return $parameters;
9999
}
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-
}
109100
}

src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/AppKernel.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,4 @@ protected function getKernelParameters(): array
9999

100100
return $parameters;
101101
}
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-
}
111102
}

0 commit comments

Comments
 (0)
0