Source of file ExpressionEngineInstaller.php
Size: 0,797 Bytes - Last Modified: 2021-12-24T06:19:18+00:00
/var/www/docs.ssmods.com/process/src/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php
1234567891011121314151617181920212223242526272829303132 | <?php namespace Composer\Installers; use Composer\Package\PackageInterface; class ExpressionEngineInstaller extends BaseInstaller { /** @var array<string, string> */ private $ee2Locations = array( 'addon' => 'system/expressionengine/third_party/{$name}/', 'theme' => 'themes/third_party/{$name}/', ); /** @var array<string, string> */ private $ee3Locations = array( 'addon' => 'system/user/addons/{$name}/', 'theme' => 'themes/user/{$name}/', ); public function getLocations(string $frameworkType): array { if ($frameworkType === 'ee2') { $this->locations = $this->ee2Locations; } else { $this->locations = $this->ee3Locations; } return $this->locations; } } |