Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class PrimeBundle extends Bundle |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritDoc} |
||
21 | */ |
||
22 | 8 | public function boot() |
|
23 | { |
||
24 | 8 | if ($this->container->getParameter('prime.locatorizable')) { |
|
25 | 8 | Locatorizable::configure(function() { |
|
26 | 2 | return $this->container->get('prime'); |
|
27 | }); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | 7 | public function build(ContainerBuilder $container) |
|
35 | { |
||
36 | 7 | $container->addCompilerPass(new PrimeConnectionFactoryPass()); |
|
37 | 7 | $container->addCompilerPass(new IgnorePrimeAnnotationsPass()); |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function shutdown() |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 |