public function Symfony1Installer::inflectPackageVars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php \Composer\Installers\Symfony1Installer::inflectPackageVars()
Format package name to CamelCase
Overrides BaseInstaller::inflectPackageVars
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ Symfony1Installer.php, line 18
Class
- Symfony1Installer
- Plugin installer for symfony 1.x
Namespace
Composer\InstallersCode
public function inflectPackageVars($vars) {
$vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
return strtoupper($matches[0][1]);
}, $vars['name']);
return $vars;
}