You are here

public function MediaWikiInstaller::inflectPackageVars in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

MediaWikiInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars($vars) {
  if ($vars['type'] === 'mediawiki-extension') {
    return $this
      ->inflectExtensionVars($vars);
  }
  if ($vars['type'] === 'mediawiki-skin') {
    return $this
      ->inflectSkinVars($vars);
  }
  return $vars;
}