Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | final class ApiGwAuthenticationUserProvider implements PayloadAwareUserProviderInterface |
||
19 | { |
||
20 | private PayloadAwareUserProviderInterface $userProvider; |
||
21 | |||
22 | 5 | public function __construct() |
|
23 | { |
||
24 | 5 | $this->userProvider = new JWTUserProvider(ApiGwAuthenticationUser::class); |
|
25 | } |
||
26 | |||
27 | 1 | public function loadUserByUsername(string $username): UserInterface |
|
28 | { |
||
29 | 1 | return $this->userProvider->loadUserByUsername($username); |
|
|
|||
30 | } |
||
31 | |||
32 | 1 | public function loadUserByUsernameAndPayload($username, array $payload) |
|
35 | } |
||
36 | |||
37 | 1 | public function refreshUser(UserInterface $user): UserInterface |
|
38 | { |
||
39 | 1 | return $this->userProvider->refreshUser($user); |
|
40 | } |
||
41 | |||
42 | 1 | public function supportsClass(string $class): bool |
|
45 | } |
||
46 | } |
||
47 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.