Skip to content

Commit 4115e46

Browse files
Sebastian Hörlweaverryan
Sebastian Hörl
authored andcommitted
Added url suffix tip
1 parent 0dd4183 commit 4115e46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/routing.rst

+8
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ the POST method and a secure connection::
117117

118118
$route = new Route('/foo', array('_method' => 'post', '_scheme' => 'https' ));
119119

120+
.. tip::
121+
122+
If you want to match all urls which start with a certain path and end in a
123+
arbitrary suffix you can use the following route definition::
124+
125+
$route = new Route('/start/{suffix}', array('suffix' => '.*'));
126+
127+
120128
Using Prefixes
121129
~~~~~~~~~~~~~~
122130

0 commit comments

Comments
 (0)