Code standard fixes
This commit is contained in:
parent
22b44e251f
commit
3a8b2eded1
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Workflow\EventListener;
|
namespace Symfony\Component\Workflow\EventListener;
|
||||||
|
|
||||||
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface;
|
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
|
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||||
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
|
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
|
||||||
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
|
use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
|
||||||
@ -57,7 +56,7 @@ class GuardListener
|
|||||||
$token = $this->tokenStorage->getToken();
|
$token = $this->tokenStorage->getToken();
|
||||||
|
|
||||||
if (null === $token) {
|
if (null === $token) {
|
||||||
throw new \Exception("No token is set");
|
throw new \Exception('No token is set');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null !== $this->roleHierarchy) {
|
if (null !== $this->roleHierarchy) {
|
||||||
|
Reference in New Issue
Block a user