Mercurial > hg > isophonics-drupal-site
comparison vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 namespace Composer\Installers; | |
3 | |
4 use Composer\Package\PackageInterface; | |
5 | |
6 class ExpressionEngineInstaller extends BaseInstaller | |
7 { | |
8 | |
9 protected $locations = array(); | |
10 | |
11 private $ee2Locations = array( | |
12 'addon' => 'system/expressionengine/third_party/{$name}/', | |
13 'theme' => 'themes/third_party/{$name}/', | |
14 ); | |
15 | |
16 private $ee3Locations = array( | |
17 'addon' => 'system/user/addons/{$name}/', | |
18 'theme' => 'themes/user/{$name}/', | |
19 ); | |
20 | |
21 public function getInstallPath(PackageInterface $package, $frameworkType = '') | |
22 { | |
23 | |
24 $version = "{$frameworkType}Locations"; | |
25 $this->locations = $this->$version; | |
26 | |
27 return parent::getInstallPath($package, $frameworkType); | |
28 } | |
29 } |