| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public static function getClassName($service, Container $container) |
||
| 50 | { |
||
| 51 | self::loadDefinitions($container); |
||
| 52 | |||
| 53 | if (empty(self::$definitions[$service])) { |
||
| 54 | throw new \InvalidArgumentException( |
||
| 55 | sprintf('Service "%s" is not defined or class name cannot be detected', $service) |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | |||
| 59 | return self::$definitions[$service]; |
||
| 60 | } |
||
| 61 | } |
||
| 63 |