Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
13 | class SecurityDependencyProvider extends AbstractProvider |
||
14 | { |
||
15 | public const AUTHENTICATOR_LIST = 'authenticator.list'; |
||
16 | |||
17 | /** |
||
18 | * @param \Xervice\Core\Dependency\DependencyProviderInterface $dependencyProvider |
||
19 | */ |
||
20 | public function handleDependencies(DependencyProviderInterface $dependencyProvider): void |
||
21 | { |
||
22 | $dependencyProvider[self::AUTHENTICATOR_LIST] = function () { |
||
23 | return $this->getAuthenticatorList(); |
||
24 | }; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Give a list of valid authenticator (string => AuthenticatorInterface::class) |
||
29 | * e.g. |
||
30 | * token => tokenAuthenticator::class |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function getAuthenticatorList(): array |
||
37 | } |
||
38 | } |