| Conditions | 5 | 
| Paths | 7 | 
| Total Lines | 23 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 2 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function getContainerExtension()  | 
            ||
| 28 |     { | 
            ||
| 29 |         if (null === $this->extension) { | 
            ||
| 30 | $class = $this->getContainerExtensionClass();  | 
            ||
| 31 |             if (class_exists($class)) { | 
            ||
| 32 | $extension = new $class();  | 
            ||
| 33 | |||
| 34 |                 if (!$extension instanceof ExtensionInterface) { | 
            ||
| 35 |                     throw new \LogicException(sprintf('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface.', $class)); | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | $this->extension = $extension;  | 
            ||
| 39 |             } else { | 
            ||
| 40 | $this->extension = false;  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 |         if ($this->extension) { | 
            ||
| 45 | return $this->extension;  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | return null;  | 
            ||
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 |