1 | <?php |
||
23 | final class SymfonyUserDiscovery implements UserAccountDiscovery |
||
24 | { |
||
25 | /** |
||
26 | * @var TokenStorageInterface |
||
27 | */ |
||
28 | private $tokenStorage; |
||
29 | |||
30 | /** |
||
31 | * @var AuthorizationCheckerInterface |
||
32 | */ |
||
33 | private $authorizationChecker; |
||
34 | |||
35 | /** |
||
36 | * SymfonyUserDiscovery constructor. |
||
37 | * |
||
38 | * @param TokenStorageInterface $tokenStorage |
||
39 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
40 | */ |
||
41 | public function __construct(TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authorizationChecker) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function find(Authorization $authorization, ?bool &$isFullyAuthenticated = null): ?UserAccount |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function check(Authorization $authorization) |
||
70 | } |
||
71 |