Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | 71 | public static function createContainer(): ContainerBuilder |
|
39 | 71 | { |
|
40 | 71 | $container = new ContainerBuilder(); |
|
41 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../config')); |
||
42 | 71 | $loader->load('services.yml'); |
|
43 | $container->addCompilerPass(new AddConsoleCommandPass()); |
||
44 | $container->compile(); |
||
45 | |||
46 | return $container; |
||
47 | } |
||
49 |