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
10 changes: 10 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,11 @@ concise, but it can decrease route readability when requirements are complex:
// ...
};

.. versionadded:: 5.2

Since Symfony 5.2, inline parameter requirements are also supported in the
host. Before Symfony 5.2, they were supported in the path only.

Optional Parameters
~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -984,6 +989,11 @@ parameter:
To give a ``null`` default value to any parameter, add nothing after the
``?`` character (e.g. ``/blog/{page?}``).

.. versionadded:: 5.2

Since Symfony 5.2, inline parameter default values are also supported in
the host. Before Symfony 5.2, they were supported in the path only.

Priority Parameter
~~~~~~~~~~~~~~~~~~

Expand Down