Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 8675a5f

Browse files
committed
Merge pull request #668 from symfony-cmf/routing_auto_allow_empty
Documentation for allow_empty option in RoutingAuto
2 parents a80cbe9 + fd30701 commit 8675a5f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bundles/routing_auto/token_providers.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ Such values can be derived form the object for which the route is being
99
generated or from the environment (e.g. you could use the current locale in
1010
the route).
1111

12+
Global Options
13+
--------------
14+
15+
The following options apply to all token providers:
16+
17+
``allow_empty``
18+
Allow the token value to be empty. If the token value is empty then any
19+
trailing slash will be removed. If the token is the last token, then the
20+
leading slash will be removed. Default is ``false``.
1221

1322
``content_method``
1423
------------------

0 commit comments

Comments
 (0)