Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function getInstallPath(PackageInterface $package) |
||
29 | { |
||
30 | $this->filesystem->ensureDirectoryExists(static::THEME_PATH); |
||
31 | |||
32 | $name = $package->getPrettyName(); |
||
33 | |||
34 | $rootPackage = $this->composer->getPackage()->getConfig(); |
||
35 | if (isset($rootPackage['ignore-theme-vendor']) && true === $rootPackage['ignore-theme-vendor']) { |
||
36 | list(, $name) = explode('/', $name, 2); |
||
37 | } |
||
38 | |||
39 | return static::THEME_PATH.$name; |
||
40 | } |
||
41 | |||
49 | } |