class HuradInstaller in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/HuradInstaller.php \Composer\Installers\HuradInstaller
Hierarchy
- class \Composer\Installers\BaseInstaller
- class \Composer\Installers\HuradInstaller
Expanded class hierarchy of HuradInstaller
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ HuradInstaller.php, line 4
Namespace
Composer\InstallersView source
class HuradInstaller extends BaseInstaller {
protected $locations = array(
'plugin' => 'plugins/{$name}/',
'theme' => 'plugins/{$name}/',
);
/**
* Format package name to CamelCase
*/
public function inflectPackageVars($vars) {
$nameParts = explode('/', $vars['name']);
foreach ($nameParts as &$value) {
$value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
$value = str_replace(array(
'-',
'_',
), ' ', $value);
$value = str_replace(' ', '', ucwords($value));
}
$vars['name'] = implode('/', $nameParts);
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. | |
HuradInstaller:: |
protected | property |
Overrides BaseInstaller:: |
|
HuradInstaller:: |
public | function |
Format package name to CamelCase Overrides BaseInstaller:: |