| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class VendorModule extends Library |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Default source folder |
||
| 14 | */ |
||
| 15 | const DEFAULT_SOURCE = 'vendor'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Default replacement folder for 'vendor' |
||
| 19 | */ |
||
| 20 | const DEFAULT_TARGET = 'resources'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Build a vendor module library |
||
| 24 | * |
||
| 25 | * @param string $basePath Project root folder |
||
| 26 | * @param string $name Composer name of this library |
||
| 27 | */ |
||
| 28 | public function __construct($basePath, $name) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get full path to the root install for this project |
||
| 40 | * |
||
| 41 | * @deprecated 1.3..2.0 use getPath() instead |
||
| 42 | * @param string $base Rewrite root (or 'vendor' for actual module path) |
||
| 43 | * @return string Path for this module |
||
| 44 | */ |
||
| 45 | public function getModulePath($base = self::DEFAULT_SOURCE) |
||
| 54 |