protected function MicroweberInstaller::inflectTemplatesVars in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php \Composer\Installers\MicroweberInstaller::inflectTemplatesVars()
1 call to MicroweberInstaller::inflectTemplatesVars()
- MicroweberInstaller::inflectPackageVars in vendor/
composer/ installers/ src/ Composer/ Installers/ MicroweberInstaller.php - Format package name.
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ MicroweberInstaller.php, line 61
Class
Namespace
Composer\InstallersCode
protected function inflectTemplatesVars($vars) {
$vars['name'] = preg_replace('/-templates$/', '', $vars['name']);
$vars['name'] = preg_replace('/templates-$/', '', $vars['name']);
return $vars;
}