diff --git a/cookbook/routing/redirect_trailing_slash.rst b/cookbook/routing/redirect_trailing_slash.rst index 55d4138d4c1..65a09c9467c 100644 --- a/cookbook/routing/redirect_trailing_slash.rst +++ b/cookbook/routing/redirect_trailing_slash.rst @@ -44,16 +44,15 @@ system, as explained below: defaults: { _controller: AcmeDemoBundle:Redirecting:removeTrailingSlash } requirements: url: .*/$ - _method: GET + methods: [GET] .. code-block:: xml - + AcmeDemoBundle:Redirecting:removeTrailingSlash .*/$ - GET @@ -72,8 +71,11 @@ system, as explained below: ), array( 'url' => '.*/$', - '_method' => 'GET', - ) + ), + array(), + '', + array(), + array('GET') ) );