Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 76.92% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class JWTCommonListener |
||
16 | { |
||
17 | use JWTBaseListener; |
||
18 | |||
19 | const REFRESH_TIME = 1800; |
||
20 | private ?array $payload = null; |
||
21 | private ?UserInterface $user = null; |
||
22 | |||
23 | 15 | public function __construct( |
|
24 | private JWTTokenManagerInterface $jwtManager) |
||
25 | { |
||
26 | 15 | } |
|
27 | |||
28 | 7 | public function onAuthenticatedAccess(JWTAuthenticatedEvent $event) |
|
32 | 7 | } |
|
33 | |||
34 | 15 | public function onAuthenticatedResponse(ResponseEvent $event) |
|
47 | } |