Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class HmacFactory implements SecurityFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) |
||
21 | { |
||
22 | $providerId = 'security.authentication.provider.hmac.' . $id; |
||
23 | $container->setDefinition($providerId, new ChildDefinition('hmac.security.authentication.provider')); |
||
24 | |||
25 | $listenerId = 'security.authentication.listener.hmac.' . $id; |
||
26 | $container->setDefinition($listenerId, new ChildDefinition('hmac.security.authentication.listener')); |
||
27 | |||
28 | return [$providerId, $listenerId, $defaultEntryPoint]; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function getPosition() |
||
35 | { |
||
36 | return 'pre_auth'; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getKey() |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function addConfiguration(NodeDefinition $node) |
||
52 | } |
||
53 | } |
||
54 |