File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments