| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 7 | public static function buildContainer() |
|
| 24 | { |
||
| 25 | 7 | $containerBuilder = new ContainerBuilder(); |
|
| 26 | |||
| 27 | 7 | $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__ . '/../Resources/config/')); |
|
| 28 | 7 | $loader->load('services.yml'); |
|
| 29 | |||
| 30 | 7 | $containerBuilder->addCompilerPass(new RegisterListenersPass()); |
|
| 31 | |||
| 32 | 7 | $containerBuilder->setDefinition( |
|
| 33 | 7 | 'event_dispatcher', |
|
| 34 | 7 | new Definition( |
|
| 35 | 7 | 'Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher', |
|
| 36 | 7 | array(new Reference('service_container')) |
|
| 37 | 7 | ) |
|
| 38 | 7 | ); |
|
| 39 | |||
| 40 | 7 | $containerBuilder->compile(); |
|
| 41 | |||
| 42 | 7 | return $containerBuilder; |
|
| 43 | } |
||
| 44 | } |
||
| 45 |