From ee1763be9f6c7f046e274fd9a51c40edb27b0ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Tue, 24 Sep 2019 14:36:07 +0200 Subject: [PATCH] Use a better exception when using make:auth with a form --- src/Security/SecurityControllerBuilder.php | 2 +- .../fixtures/expected/SecurityController_login_logout.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Security/SecurityControllerBuilder.php b/src/Security/SecurityControllerBuilder.php index 3d843bd91..12923fd41 100644 --- a/src/Security/SecurityControllerBuilder.php +++ b/src/Security/SecurityControllerBuilder.php @@ -71,7 +71,7 @@ public function addLogoutMethod(ClassSourceManipulator $manipulator) $manipulator->addUseStatementIfNecessary(Route::class); $manipulator->addMethodBody($logoutMethodBuilder, <<<'CODE' addMethodBuilder($logoutMethodBuilder); diff --git a/tests/Security/fixtures/expected/SecurityController_login_logout.php b/tests/Security/fixtures/expected/SecurityController_login_logout.php index 000eedc6d..ed5a595b7 100644 --- a/tests/Security/fixtures/expected/SecurityController_login_logout.php +++ b/tests/Security/fixtures/expected/SecurityController_login_logout.php @@ -31,6 +31,6 @@ public function login(AuthenticationUtils $authenticationUtils): Response */ public function logout() { - throw new \Exception('This method can be blank - it will be intercepted by the logout key on your firewall'); + throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.'); } }