Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | protected function injectContainer(Definition $definition) |
||
25 | { |
||
26 | $reflClass = $this->reflectionFactory->createReflectionClass($definition->getClass()); |
||
27 | |||
28 | if ($reflClass->implementsInterface(static::CONTAINER_AWARE_INTERFACE)) { |
||
29 | $containerRef = $this->referenceFactory->createReference(static::CONTAINER_SERVICE_ID); |
||
30 | $definition->addMethodCall('setContainer', array($containerRef)); |
||
31 | } |
||
32 | } |
||
33 | |||
36 |