ComposerInstallersSymfony1Installer

Plugin installer for symfony 1.x.

Defined (1)

The class is defined in the following location(s).

/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php  
  1. class Symfony1Installer extends BaseInstaller 
  2. protected $locations = array( 
  3. 'plugin' => 'plugins/{$name}/',  
  4. ); 
  5.  
  6. /** 
  7. * Format package name to CamelCase 
  8. */ 
  9. public function inflectPackageVars($vars) 
  10. $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) { 
  11. return strtoupper($matches[0][1]); 
  12. }, $vars['name']); 
  13.  
  14. return $vars;