public function DokuWikiInstaller::inflectPackageVars in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php \Composer\Installers\DokuWikiInstaller::inflectPackageVars()
Format package name.
For package type dokuwiki-plugin, cut off a trailing '-plugin', or leading dokuwiki_ if present.
For package type dokuwiki-template, cut off a trailing '-template' if present.
Overrides BaseInstaller::inflectPackageVars
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ DokuWikiInstaller.php, line 20
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars($vars) {
if ($vars['type'] === 'dokuwiki-plugin') {
return $this
->inflectPluginVars($vars);
}
if ($vars['type'] === 'dokuwiki-template') {
return $this
->inflectTemplateVars($vars);
}
return $vars;
}