Skip to content
Merged
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
12 changes: 12 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2833,6 +2833,18 @@ Now you'll get the expected results when generating URLs in your commands::
value, but you can change it with the ``asset.request_context.base_path``
and ``asset.request_context.secure`` container parameters.

.. note::

By default, routes generated outside the HTTP context use the
:ref:`default locale <config-framework-default_locale>` as the value of the
``_locale`` parameter. You can override this by providing a different value
for the ``_locale`` parameter when generating each route.

.. versionadded:: 7.4

The default locale is used as the value of the ``_locale`` parameter
starting from Symfony 7.4.

Checking if a Route Exists
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down