You are here

class Symfony1Installer in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php \Composer\Installers\Symfony1Installer

Plugin installer for symfony 1.x

@author Jérôme Tamarelle <jerome@tamarelle.net>

Hierarchy

Expanded class hierarchy of Symfony1Installer

File

vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php, line 9

Namespace

Composer\Installers
View source
class Symfony1Installer extends BaseInstaller {
  protected $locations = array(
    'plugin' => 'plugins/{$name}/',
  );

  /**
   * Format package name to CamelCase
   */
  public function inflectPackageVars($vars) {
    $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
      return strtoupper($matches[0][1]);
    }, $vars['name']);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseInstaller::$composer protected property
BaseInstaller::$package protected property
BaseInstaller::getInstallPath public function Return the install path based on package type. 1
BaseInstaller::getLocations public function Gets the installer's locations 1
BaseInstaller::mapCustomInstallPaths protected function Search through a passed paths array for a custom install path.
BaseInstaller::templatePath protected function Replace vars in a path
BaseInstaller::__construct public function Initializes base installer.
Symfony1Installer::$locations protected property Overrides BaseInstaller::$locations
Symfony1Installer::inflectPackageVars public function Format package name to CamelCase Overrides BaseInstaller::inflectPackageVars