Skip to content

Commit 6bbc162

Browse files
authored
Fix broken links in docs (#142)
1 parent 2ea08cd commit 6bbc162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Module/Symfony/ServicesAssertionsTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait ServicesAssertionsTrait
1111
/**
1212
* Grabs a service from the Symfony dependency injection container (DIC).
1313
* 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.
1515
* Services that aren't injected somewhere into your app, need to be defined as `public` to be accessible by Codeception.
1616
*
1717
* ```php
@@ -27,7 +27,7 @@ public function grabService(string $serviceId): object
2727
{
2828
if (!$service = $this->getService($serviceId)) {
2929
$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");
3131
}
3232
return $service;
3333
}

0 commit comments

Comments
 (0)