8000 Document routing inline requirements and defaults for host by julienfalque · Pull Request #14007 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Document routing inline requirements and defaults for host #14007

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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
8000
Diff view
Document routing inline requirements and defaults for host
  • Loading branch information
julienfalque committed Jul 29, 2020
commit 410233a1306eb342d4214e0436b39ee0f6a29d1d
10 changes: 10 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,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 @@ -798,6 +803,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
0