From e0583722c4b4ee5c9f85e7f7b6573b38210fac7a Mon Sep 17 00:00:00 2001 From: Tavo Nieves J Date: Thu, 2 Sep 2021 15:37:59 -0500 Subject: [PATCH] Fix broken links in docs --- src/Codeception/Module/Symfony/ServicesAssertionsTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Codeception/Module/Symfony/ServicesAssertionsTrait.php b/src/Codeception/Module/Symfony/ServicesAssertionsTrait.php index 8d172c3b..e6260292 100644 --- a/src/Codeception/Module/Symfony/ServicesAssertionsTrait.php +++ b/src/Codeception/Module/Symfony/ServicesAssertionsTrait.php @@ -11,7 +11,7 @@ trait ServicesAssertionsTrait /** * Grabs a service from the Symfony dependency injection container (DIC). * In "test" environment, Symfony uses a special `test.service_container`. - * See the "[Accessing the Container](https://symfony.com/doc/current/testing.html#accessing-the-container)" documentation. + * See the "[Public Versus Private Services](https://symfony.com/doc/current/service_container/alias_private.html#marking-services-as-public-private)" documentation. * Services that aren't injected somewhere into your app, need to be defined as `public` to be accessible by Codeception. * * ```php @@ -28,7 +28,7 @@ public function grabService(string $serviceId): object if (!$service = $this->getService($serviceId)) { $this->fail("Service {$serviceId} is not available in container. If the service isn't injected anywhere in your app, you need to set it to `public` in your `config/services_test.php`/`.yaml`, - see https://symfony.com/doc/current/testing.html#accessing-the-container"); + see https://symfony.com/doc/current/service_container/alias_private.html#marking-services-as-public-private"); } return $service; }