Skip to content

Commit 0453493

Browse files
committed
Update the route method in some config examples
1 parent 1efe361 commit 0453493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ Next, you need to create a route for this URL (but not a controller):
17181718
# config/routes.yaml
17191719
app_logout:
17201720
path: /logout
1721-
methods: POST
1721+
methods: GET
17221722
17231723
.. code-block:: xml
17241724
@@ -1729,7 +1729,7 @@ Next, you need to create a route for this URL (but not a controller):
17291729
xsi:schemaLocation="http://symfony.com/schema/routing
17301730
https://symfony.com/schema/routing/routing-1.0.xsd">
17311731
1732-
<route id="app_logout" path="/logout" methods="POST"/>
1732+
<route id="app_logout" path="/logout" methods="GET"/>
17331733
</routes>
17341734
17351735
.. code-block:: php
@@ -1739,7 +1739,7 @@ Next, you need to create a route for this URL (but not a controller):
17391739
17401740
return function (RoutingConfigurator $routes) {
17411741
$routes->add('app_logout', '/logout')
1742-
->methods(['POST'])
1742+
->methods(['GET'])
17431743
;
17441744
};
17451745

0 commit comments

Comments
 (0)