logout ok

This commit is contained in:
Gnieark 2019-12-27 11:26:45 +01:00
parent c486d83d3f
commit bb368e28c4
4 changed files with 7 additions and 5 deletions

View File

@ -33,7 +33,7 @@
"doctrine/doctrine-fixtures-bundle": "^3.3", "doctrine/doctrine-fixtures-bundle": "^3.3",
"symfony/debug-pack": "*", "symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.14", "symfony/maker-bundle": "^1.14",
"symfony/profiler-pack": "*", "symfony/profiler-pack": "^1.0",
"symfony/test-pack": "*" "symfony/test-pack": "*"
}, },
"config": { "config": {

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b20f46a7fddb0abe3c5ff55d45b55de4", "content-hash": "ac514249a57f2920364612f8e4958797",
"packages": [ "packages": [
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",

View File

@ -1,11 +1,13 @@
index: index:
path: / path: /
controller: App\Controller\HomeController::index controller: App\Controller\HomeController::index
login: app_login:
path: /login path: /login
controller: App\Controller\SecurityController::login controller: App\Controller\SecurityController::login
methods: GET|POST methods: GET|POST
app_logout:
path: /logout
methods: GET
registerForm: registerForm:
path: /register path: /register
controller: App\Controller\SecurityController::showRegisterForm controller: App\Controller\SecurityController::showRegisterForm

View File

@ -99,6 +99,6 @@ class LoginFormAuthentificatorAuthenticator extends AbstractFormLoginAuthenticat
protected function getLoginUrl() protected function getLoginUrl()
{ {
return $this->urlGenerator->generate('login'); return $this->urlGenerator->generate('app_login');
} }
} }