Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down