| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public static function getContainer() |
||
| 20 | { |
||
| 21 | $container = new ContainerBuilder(); |
||
| 22 | |||
| 23 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/')); |
||
| 24 | $loader->load('services.yml'); |
||
| 25 | |||
| 26 | $container->addCompilerPass( |
||
| 27 | new CompilerPass( |
||
| 28 | 'event_dispatcher', |
||
| 29 | 'paraunit.event_listener', |
||
| 30 | 'paraunit.event_subscriber' |
||
| 31 | ) |
||
| 32 | ); |
||
| 33 | |||
| 34 | $container->compile(); |
||
| 35 | |||
| 36 | return $container; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |