Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function getInstallPath(PackageInterface $package) |
||
23 | { |
||
24 | if (!file_exists(getcwd() . '/system/modules')) { |
||
25 | throw new \LogicException('Module directory not found. You have to install modules from root directory'); |
||
26 | } |
||
27 | |||
28 | $parts = explode('/', $package->getPrettyName(), 2); |
||
29 | return "system/modules/{$parts[1]}"; |
||
30 | } |
||
31 | |||
42 |