Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function getClassNameByDriverKey($driverKey) |
||
36 | { |
||
37 | $driverClass = $this->namespace . '\\' . ucfirst(DIContainer::camelize($driverKey)); |
||
38 | |||
39 | if (!$this->classValidator->isValidDriverClass($driverClass)) { |
||
40 | throw new \Exception(sprintf('Driver %s was not found in %s', $driverKey, $driverClass)); |
||
41 | } |
||
42 | |||
43 | return $driverClass; |
||
44 | } |
||
45 | } |