Skip to content

Commit 7afae69

Browse files
authored
Update RequestListener.php
removed AuthorizationChecker
1 parent 99833dc commit 7afae69

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/EventListener/RequestListener.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
99
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1010
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
11-
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
1211
use Symfony\Component\Security\Core\User\UserInterface;
1312

1413
/**
@@ -23,23 +22,17 @@ final class RequestListener
2322
/** @var TokenStorageInterface|null */
2423
private $tokenStorage;
2524

26-
/** @var AuthorizationCheckerInterface|null */
27-
private $authorizationChecker;
28-
2925
/**
3026
* RequestListener constructor.
3127
* @param HubInterface $hub
3228
* @param TokenStorageInterface|null $tokenStorage
33-
* @param AuthorizationCheckerInterface|null $authorizationChecker
3429
*/
3530
public function __construct(
3631
HubInterface $hub,
37-
?TokenStorageInterface $tokenStorage,
38-
?AuthorizationCheckerInterface $authorizationChecker
32+
?TokenStorageInterface $tokenStorage
3933
) {
4034
$this->hub = $hub; // not used, needed to trigger instantiation
4135
$this->tokenStorage = $tokenStorage;
42-
$this->authorizationChecker = $authorizationChecker;
4336
}
4437

4538
/**
@@ -68,7 +61,6 @@ public function onKernelRequest(GetResponseEvent $event): void
6861

6962
if (
7063
null !== $token
71-
&& null !== $this->authorizationChecker
7264
&& $token->isAuthenticated()
7365
&& $token->getUser()
7466
) {

0 commit comments

Comments
 (0)