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 @@ -1776,7 +1776,7 @@ Next, you need to create a route for this URL (but not a controller):
1776
1776
1777
1777
class SecurityController extends AbstractController
1778
1778
{
1779
- #[Route('/logout', name: 'app_logout', methods: ['GET '])]
1779
+ #[Route('/logout', name: 'app_logout', methods: ['POST '])]
1780
1780
public function logout()
1781
1781
{
1782
1782
// controller can be blank: it will never be called!
@@ -1789,7 +1789,7 @@ Next, you need to create a route for this URL (but not a controller):
1789
1789
# config/routes.yaml
1790
1790
app_logout :
1791
1791
path : /logout
1792
- methods : GET
1792
+ methods : POST
1793
1793
1794
1794
.. code-block :: xml
1795
1795
@@ -1800,7 +1800,7 @@ Next, you need to create a route for this URL (but not a controller):
1800
1800
xsi : schemaLocation =" http://symfony.com/schema/routing
1801
1801
https://symfony.com/schema/routing/routing-1.0.xsd" >
1802
1802
1803
- <route id =" app_logout" path =" /logout" methods =" GET " />
1803
+ <route id =" app_logout" path =" /logout" methods =" POST " />
1804
1804
</routes >
1805
1805
1806
1806
.. code-block :: php
@@ -1810,7 +1810,7 @@ Next, you need to create a route for this URL (but not a controller):
1810
1810
1811
1811
return function (RoutingConfigurator $routes) {
1812
1812
$routes->add('app_logout', '/logout')
1813
- ->methods(['GET '])
1813
+ ->methods(['POST '])
1814
1814
;
1815
1815
};
1816
1816
You can’t perform that action at this time.
0 commit comments