You are here

private function ShopwareInstaller::correctThemeName 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::correctThemeName()

Changes the name to a underscore separated name

Parameters

array $vars:

Return value

array

1 call to ShopwareInstaller::correctThemeName()
ShopwareInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php
Transforms the names

File

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

Class

ShopwareInstaller
Plugin/theme installer for shopware @author Benjamin Boit

Namespace

Composer\Installers

Code

private function correctThemeName($vars) {
  $vars['name'] = str_replace('-', '_', $vars['name']);
  return $vars;
}