| 1 | <?php |
||
| 8 | class ShopwareInstaller extends BaseInstaller |
||
| 9 | { |
||
| 10 | protected $locations = array( |
||
| 11 | 'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/', |
||
| 12 | 'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/', |
||
| 13 | 'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/', |
||
| 14 | 'theme' => 'templates/{$name}/', |
||
| 15 | 'plugin' => 'custom/plugins/{$name}/', |
||
| 16 | 'frontend-theme' => 'themes/Frontend/{$name}/', |
||
| 17 | ); |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Transforms the names |
||
| 21 | * @param array $vars |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function inflectPackageVars($vars) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Changes the name to a camelcased combination of vendor and name |
||
| 35 | * @param array $vars |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | private function correctPluginName($vars) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Changes the name to a underscore separated name |
||
| 51 | * @param array $vars |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | private function correctThemeName($vars) |
||
| 60 | } |
||
| 61 |