8000 replaced old way of specifying http method by the new one · linaori/symfony-docs@ef45eea · GitHub
[go: up one dir, main page]

Skip to content

Commit ef45eea

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

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cookbook/routing/redirect_trailing_slash.rst

Lines 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