function MicroweberInstaller::inflectModuleVars
Parameters
array<string, string> $vars:
Return value
array<string, string>
1 call to MicroweberInstaller::inflectModuleVars()
- MicroweberInstaller::inflectPackageVars in vendor/
composer/ installers/ src/ Composer/ Installers/ MicroweberInstaller.php - Format package name.
File
-
vendor/
composer/ installers/ src/ Composer/ Installers/ MicroweberInstaller.php, line 100
Class
Namespace
Composer\InstallersCode
protected function inflectModuleVars(array $vars) : array {
$vars['install_item_dir'] = $this->pregReplace('/-module$/', '', $vars['install_item_dir']);
$vars['install_item_dir'] = $this->pregReplace('/module-$/', '', $vars['install_item_dir']);
return $vars;
}