You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Codeception/Module/Symfony/ServicesAssertionsTrait.php
+2-2
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ trait ServicesAssertionsTrait
11
11
/**
12
12
* Grabs a service from the Symfony dependency injection container (DIC).
13
13
* In "test" environment, Symfony uses a special `test.service_container`.
14
-
* See the "[Accessing the Container](https://symfony.com/doc/current/testing.html#accessing-the-container)" documentation.
14
+
* See the "[Public Versus Private Services](https://symfony.com/doc/current/service_container/alias_private.html#marking-services-as-public-private)" documentation.
15
15
* Services that aren't injected somewhere into your app, need to be defined as `public` to be accessible by Codeception.
16
16
*
17
17
* ```php
@@ -27,7 +27,7 @@ public function grabService(string $serviceId): object
27
27
{
28
28
if (!$service = $this->getService($serviceId)) {
29
29
$this->fail("Service `{$serviceId}` is required by Codeception, but not loaded by Symfony since you're not using it anywhere in your app.\n
30
-
Recommended solution: Set it to `public` in your `config/services_test.php`/`.yaml`, see https://symfony.com/doc/current/testing.html#retrieving-services-in-the-test");
30
+
Recommended solution: Set it to `public` in your `config/services_test.php`/`.yaml`, see https://symfony.com/doc/current/service_container/alias_private.html#marking-services-as-public-private");
0 commit comments