2 namespace Composer\Installers;
4 use Composer\Package\PackageInterface;
6 class ExpressionEngineInstaller extends BaseInstaller
9 protected $locations = array();
11 private $ee2Locations = array(
12 'addon' => 'system/expressionengine/third_party/{$name}/',
13 'theme' => 'themes/third_party/{$name}/',
16 private $ee3Locations = array(
17 'addon' => 'system/user/addons/{$name}/',
18 'theme' => 'themes/user/{$name}/',
21 public function getInstallPath(PackageInterface $package, $frameworkType = '')
24 $version = "{$frameworkType}Locations";
25 $this->locations = $this->$version;
27 return parent::getInstallPath($package, $frameworkType);