We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ecad0a commit ba65f5fCopy full SHA for ba65f5f
src/Codeception/Lib/Connector/Symfony.php
@@ -77,8 +77,11 @@ public function rebootKernel()
77
$this->container = $this->kernel->getContainer();
78
79
foreach ($this->persistentServices as $serviceName => $service) {
80
- if (!$this->container->initialized($serviceName)) {
+ try {
81
$this->container->set($serviceName, $service);
82
+ } catch (\InvalidArgumentException $e) {
83
+ //Private services can't be set in Symfony 4
84
+ codecept_debug("[Symfony] Can't set persistent service $serviceName: " . $e->getMessage());
85
}
86
87
0 commit comments