public function MediaWikiInstaller::inflectPackageVars in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php \Composer\Installers\MediaWikiInstaller::inflectPackageVars()
Format package name.
For package type mediawiki-extension, cut off a trailing '-extension' if present and transform to CamelCase keeping existing uppercase chars.
For package type mediawiki-skin, cut off a trailing '-skin' if present.
Overrides BaseInstaller::inflectPackageVars
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ MediaWikiInstaller.php, line 20
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars($vars) {
if ($vars['type'] === 'mediawiki-extension') {
return $this
->inflectExtensionVars($vars);
}
if ($vars['type'] === 'mediawiki-skin') {
return $this
->inflectSkinVars($vars);
}
return $vars;
}