From ef45eeabb5407015238d2bfd6b8fd2276248813f Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 16 Aug 2014 12:14:00 +0200 Subject: [PATCH 1/2] replaced old way of specifying http method by the new one --- cookbook/routing/redirect_trailing_slash.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cookbook/routing/redirect_trailing_slash.rst b/cookbook/routing/redirect_trailing_slash.rst index 55d4138d4c1..3f42b092d7d 100644 --- a/cookbook/routing/redirect_trailing_slash.rst +++ b/cookbook/routing/redirect_trailing_slash.rst @@ -44,7 +44,7 @@ system, as explained below: defaults: { _controller: AcmeDemoBundle:Redirecting:removeTrailingSlash } requirements: url: .*/$ - _method: GET + methods: [GET] .. code-block:: xml @@ -53,7 +53,7 @@ system, as explained below: AcmeDemoBundle:Redirecting:removeTrailingSlash .*/$ - GET + GET @@ -72,8 +72,11 @@ system, as explained below: ), array( 'url' => '.*/$', - '_method' => 'GET', - ) + ), + array(), + '', + array(), + array('GET') ) ); From 7d1ec51116c3a210b1af1c002381652aef4c82f3 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sat, 16 Aug 2014 13:09:57 +0200 Subject: [PATCH 2/2] fix xml to specify a method --- cookbook/routing/redirect_trailing_slash.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cookbook/routing/redirect_trailing_slash.rst b/cookbook/routing/redirect_trailing_slash.rst index 3f42b092d7d..65a09c9467c 100644 --- a/cookbook/routing/redirect_trailing_slash.rst +++ b/cookbook/routing/redirect_trailing_slash.rst @@ -50,10 +50,9 @@ system, as explained below: - + AcmeDemoBundle:Redirecting:removeTrailingSlash .*/$ - GET