ExpressionEngineInstaller.php 732 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Composer\Installers;
  3. use Composer\Package\PackageInterface;
  4. class ExpressionEngineInstaller extends BaseInstaller
  5. {
  6. protected $locations = array();
  7. private $ee2Locations = array(
  8. 'addon' => 'system/expressionengine/third_party/{$name}/',
  9. 'theme' => 'themes/third_party/{$name}/',
  10. );
  11. private $ee3Locations = array(
  12. 'addon' => 'system/user/addons/{$name}/',
  13. 'theme' => 'themes/user/{$name}/',
  14. );
  15. public function getInstallPath(PackageInterface $package, $frameworkType = '')
  16. {
  17. $version = "{$frameworkType}Locations";
  18. $this->locations = $this->$version;
  19. return parent::getInstallPath($package, $frameworkType);
  20. }
  21. }