File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1741,7 +1741,7 @@ Next, you need to create a route for this URL (but not a controller):
1741
1741
1742
1742
class SecurityController extends AbstractController
1743
1743
{
1744
- #[Route('/logout', name: 'app_logout', methods: ['GET '])]
1744
+ #[Route('/logout', name: 'app_logout', methods: ['POST '])]
1745
1745
public function logout()
1746
1746
{
1747
1747
// controller can be blank: it will never be called!
@@ -1754,7 +1754,7 @@ Next, you need to create a route for this URL (but not a controller):
1754
1754
# config/routes.yaml
1755
1755
app_logout :
1756
1756
path : /logout
1757
- methods : GET
1757
+ methods : POST
1758
1758
1759
1759
.. code-block :: xml
1760
1760
@@ -1765,7 +1765,7 @@ Next, you need to create a route for this URL (but not a controller):
1765
1765
xsi : schemaLocation =" http://symfony.com/schema/routing
1766
1766
https://symfony.com/schema/routing/routing-1.0.xsd" >
1767
1767
1768
- <route id =" app_logout" path =" /logout" methods =" GET " />
1768
+ <route id =" app_logout" path =" /logout" methods =" POST " />
1769
1769
</routes >
1770
1770
1771
1771
.. code-block :: php
@@ -1775,7 +1775,7 @@ Next, you need to create a route for this URL (but not a controller):
1775
1775
1776
1776
return function (RoutingConfigurator $routes) {
1777
1777
$routes->add('app_logout', '/logout')
1778
- ->methods(['GET '])
1778
+ ->methods(['POST '])
1779
1779
;
1780
1780
};
1781
1781
You can’t perform that action at this time.
0 commit comments