These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Yokai\SecurityTokenBundle; |
||
4 | |||
5 | use Symfony\Component\Console\Application; |
||
6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
7 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
8 | use Yokai\DependencyInjection\CompilerPass\ArgumentRegisterTaggedServicesCompilerPass; |
||
9 | use Yokai\SecurityTokenBundle\Manager\UserManagerInterface; |
||
10 | |||
11 | /** |
||
12 | * @author Yann Eugoné <[email protected]> |
||
13 | */ |
||
14 | class YokaiSecurityTokenBundle extends Bundle |
||
15 | { |
||
16 | /** |
||
17 | * @inheritDoc |
||
18 | 4 | */ |
|
19 | public function build(ContainerBuilder $container) |
||
20 | 4 | { |
|
21 | 4 | $registerTokenConfiguration = new ArgumentRegisterTaggedServicesCompilerPass( |
|
0 ignored issues
–
show
|
|||
22 | 4 | 'yokai_security_token.configuration_registry', |
|
23 | 4 | 'yokai_security_token.configuration', |
|
24 | null, |
||
25 | 0 |
||
26 | 4 | ); |
|
27 | 4 | $registerUserManager = new ArgumentRegisterTaggedServicesCompilerPass( |
|
28 | 4 | 'yokai_security_token.user_manager', |
|
29 | 4 | 'yokai_security_token.user_manager', |
|
30 | UserManagerInterface::class, |
||
31 | 0 |
||
32 | ); |
||
33 | |||
34 | 4 | $container |
|
35 | 4 | ->addCompilerPass($registerTokenConfiguration) |
|
36 | ->addCompilerPass($registerUserManager) |
||
37 | 4 | ; |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @inheritDoc |
||
42 | */ |
||
43 | public function registerCommands(Application $application) |
||
44 | { |
||
45 | // commands are registered as services |
||
46 | } |
||
47 | } |
||
48 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.