class PiwikInstaller in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php \Composer\Installers\PiwikInstaller
Class PiwikInstaller
@package Composer\Installers
Hierarchy
- class \Composer\Installers\BaseInstaller
- class \Composer\Installers\PiwikInstaller
Expanded class hierarchy of PiwikInstaller
1 file declares its use of PiwikInstaller
- PiwikInstallerTest.php in vendor/
composer/ installers/ tests/ Composer/ Installers/ Test/ PiwikInstallerTest.php
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ PiwikInstaller.php, line 9
Namespace
Composer\InstallersView source
class PiwikInstaller extends BaseInstaller {
/**
* @var array
*/
protected $locations = array(
'plugin' => 'plugins/{$name}/',
);
/**
* Format package name to CamelCase
* @param array $vars
*
* @return array
*/
public function inflectPackageVars($vars) {
$vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
$vars['name'] = str_replace(array(
'-',
'_',
), ' ', $vars['name']);
$vars['name'] = str_replace(' ', '', ucwords($vars['name']));
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseInstaller:: |
protected | property | ||
BaseInstaller:: |
protected | property | ||
BaseInstaller:: |
public | function | Return the install path based on package type. | 1 |
BaseInstaller:: |
public | function | Gets the installer's locations | 1 |
BaseInstaller:: |
protected | function | Search through a passed paths array for a custom install path. | |
BaseInstaller:: |
protected | function | Replace vars in a path | |
BaseInstaller:: |
public | function | Initializes base installer. | |
PiwikInstaller:: |
protected | property |
Overrides BaseInstaller:: |
|
PiwikInstaller:: |
public | function |
Format package name to CamelCase Overrides BaseInstaller:: |