Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef45eea

Browse filesBrowse files
Baptouuuuweaverryan
authored andcommitted
replaced old way of specifying http method by the new one
1 parent 189a123 commit ef45eea
Copy full SHA for ef45eea

File tree

Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed

‎cookbook/routing/redirect_trailing_slash.rst

Copy file name to clipboardExpand all lines: cookbook/routing/redirect_trailing_slash.rst
+7-4Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ system, as explained below:
4444
defaults: { _controller: AcmeDemoBundle:Redirecting:removeTrailingSlash }
4545
requirements:
4646
url: .*/$
47-
_method: GET
47+
methods: [GET]
4848
4949
.. code-block:: xml
5050
@@ -53,7 +53,7 @@ system, as explained below:
5353
<route id="remove_trailing_slash" path="/{url}">
5454
<default key="_controller">AcmeDemoBundle:Redirecting:removeTrailingSlash</default>
5555
<requirement key="url">.*/$</requirement>
56-
<requirement key="_method">GET</requirement>
56+
<method>GET</method>
5757
</route>
5858
</routes>
5959
@@ -72,8 +72,11 @@ system, as explained below:
7272
),
7373
array(
7474
'url' => '.*/$',
75-
'_method' => 'GET',
76-
)
75+
),
76+
array(),
77+
'',
78+
array(),
79+
array('GET')
7780
)
7881
);
7982

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.