diff --git a/routing.rst b/routing.rst index 9e83964bd2b..1b1afbb3c65 100644 --- a/routing.rst +++ b/routing.rst @@ -269,11 +269,18 @@ given value: class DefaultController extends AbstractController { - #[Route('/tools', name: 'tools', env: 'dev')] + // Using the Route attribute, you can specify multiple environments + #[Route('/tools', name: 'tools', env: ['test', 'dev'])] public function developerTools(): Response { // ... } + + #[Route('/test', name: 'test', env: 'test')] + public function testScenario(): Response + { + // ... + } } .. code-block:: yaml