Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
39 | 1 | protected static function loadServices() |
|
40 | { |
||
41 | 1 | $loader = new YamlFileLoader(self::$container, new FileLocator(__DIR__)); |
|
42 | 1 | $loader->load('services.yaml'); |
|
43 | |||
44 | /** @var Definition $definition */ |
||
45 | 1 | foreach (self::$container->getDefinitions() as $id => $definition) { |
|
46 | 1 | self::$container->setAlias($definition->getClass(), $id); |
|
47 | } |
||
48 | 1 | } |
|
49 | } |
||
50 |