Yaffs site version 1.1
[yaffs-website] / vendor / composer / installers / src / Composer / Installers / ExpressionEngineInstaller.php
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 }