diff --git a/composer.json b/composer.json index 4b83726..1ad67e9 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "doctrine/doctrine-fixtures-bundle": "^3.3", "symfony/debug-pack": "*", "symfony/maker-bundle": "^1.14", - "symfony/profiler-pack": "*", + "symfony/profiler-pack": "^1.0", "symfony/test-pack": "*" }, "config": { diff --git a/composer.lock b/composer.lock index 89f0e9d..c07bc78 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b20f46a7fddb0abe3c5ff55d45b55de4", + "content-hash": "ac514249a57f2920364612f8e4958797", "packages": [ { "name": "doctrine/annotations", diff --git a/config/routes.yaml b/config/routes.yaml index eb0ccc7..9ebc1bb 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,11 +1,13 @@ index: path: / controller: App\Controller\HomeController::index -login: +app_login: path: /login controller: App\Controller\SecurityController::login methods: GET|POST - +app_logout: + path: /logout + methods: GET registerForm: path: /register controller: App\Controller\SecurityController::showRegisterForm diff --git a/src/Security/LoginFormAuthentificatorAuthenticator.php b/src/Security/LoginFormAuthentificatorAuthenticator.php index 49362f8..d6126b9 100644 --- a/src/Security/LoginFormAuthentificatorAuthenticator.php +++ b/src/Security/LoginFormAuthentificatorAuthenticator.php @@ -99,6 +99,6 @@ class LoginFormAuthentificatorAuthenticator extends AbstractFormLoginAuthenticat protected function getLoginUrl() { - return $this->urlGenerator->generate('login'); + return $this->urlGenerator->generate('app_login'); } }