WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

Composer\Installers

ExpressionEngineInstaller{} WC 1.0

Хуков нет.

Возвращает

Null. Ничего.

Использование

$ExpressionEngineInstaller = new ExpressionEngineInstaller();
// use class methods

Методы

  1. getInstallPath(PackageInterface $package, $frameworkType = '')
  2. getInstallPath(PackageInterface $package, $frameworkType = '')
  3. getInstallPath(PackageInterface $package, $frameworkType = '')

Код ExpressionEngineInstaller{} WC 4.6.1

<?php
class ExpressionEngineInstaller extends BaseInstaller
{

    protected $locations = array();

    private $ee2Locations = array(
        'addon'   => 'system/expressionengine/third_party/{$name}/',
        'theme'   => 'themes/third_party/{$name}/',
    );

    private $ee3Locations = array(
        'addon'   => 'system/user/addons/{$name}/',
        'theme'   => 'themes/user/{$name}/',
    );

    public function getInstallPath(PackageInterface $package, $frameworkType = '')
    {

        $version = "{$frameworkType}Locations";
        $this->locations = $this->$version;

        return parent::getInstallPath($package, $frameworkType);
    }
}