Skip to content
Open
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
11 changes: 11 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ given value:
{
// ...
}

// You can also pass an array of environments
#[Route('/tools', name: 'tools', env: ['dev', 'test'])]
public function developerTools(): Response
{
// ...
}
}

.. code-block:: yaml
Expand Down Expand Up @@ -312,6 +319,10 @@ given value:
}
};

.. versionadded:: 7.4

The ability to pass an array of environments to the ``env`` argument was introduced in Symfony 7.4.

.. _routing-matching-expressions:

Matching Expressions
Expand Down