Skip to content

Commit

Permalink
Simpler logout
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 23, 2023
1 parent 38ad58e commit 4556e99
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Controller/SecurityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,4 @@ public function login(
'error' => $helper->getLastAuthenticationError(),
]);
}

/**
* This is the route the user can use to logout.
*
* But, this will never be executed. Symfony will intercept this first
* and handle the logout automatically. See logout in config/packages/security.yaml
*/
#[Route('/logout', name: 'security_logout')]
public function logout(): void
{
throw new \Exception('This should never be reached!');
}
}

0 comments on commit 4556e99

Please sign in to comment.