Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Make the code compatible with Symfony 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 15, 2020
1 parent c76bb1c commit aaf1fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/SecurityListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function onKernelControllerArguments(KernelEvent $event)
}

if (null === $this->tokenStorage->getToken()) {
throw new \LogicException('To use the @Security tag, your controller needs to be behind a firewall.');
throw new AccessDeniedException('No user token or you forgot to put your controller behind a firewall while using a @Security tag.');
}

if (null === $this->language) {
Expand Down

0 comments on commit aaf1fda

Please sign in to comment.