You are here

public function ShopwareInstaller::inflectPackageVars in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php \Composer\Installers\ShopwareInstaller::inflectPackageVars()

Transforms the names

Parameters

array $vars:

Return value

array

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php, line 22

Class

ShopwareInstaller
Plugin/theme installer for shopware @author Benjamin Boit

Namespace

Composer\Installers

Code

public function inflectPackageVars($vars) {
  if ($vars['type'] === 'shopware-theme') {
    return $this
      ->correctThemeName($vars);
  }
  else {
    return $this
      ->correctPluginName($vars);
  }
}