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 c32f3e1 commit 802821fCopy full SHA for 802821f
src/Codeception/Module/Symfony.php
@@ -574,7 +574,9 @@ public function grabService($service)
574
{
575
$container = $this->_getContainer();
576
if (!$container->has($service)) {
577
- $this->fail("Service $service is not available in container");
+ $this->fail("Service $service is not available in container.
578
+ If the service isn't injected anywhere in your app, you need to set it to `public` in your `config/services_test.php`/`.yaml`,
579
+ see https://symfony.com/doc/current/testing.html#accessing-the-container");
580
}
581
return $container->get($service);
582
0 commit comments