1 | <?php |
||
11 | class ApiKeyUserProvider implements UserProviderInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var ManagerRegistry |
||
15 | */ |
||
16 | private $registry; |
||
17 | |||
18 | /** |
||
19 | * @param ManagerRegistry $registry |
||
20 | */ |
||
21 | public function __construct(ManagerRegistry $registry) |
||
25 | |||
26 | /** |
||
27 | * @param string $apiKey |
||
28 | * @return null|object |
||
29 | */ |
||
30 | public function getUsernameByApiKey($apiKey) |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function loadUserByUsername($username) |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function refreshUser(UserInterface $user) |
||
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function supportsClass($class) |
||
80 | } |
||
81 |