ComposerInstallersYawikInstaller

The Simple Calendar Composer Installers YawikInstaller class.

Defined (1)

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

/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php  
  1. class YawikInstaller extends BaseInstaller 
  2. protected $locations = array( 
  3. 'module' => 'module/{$name}/',  
  4. ); 
  5.  
  6. /** 
  7. * Format package name to CamelCase 
  8. * @param array $vars 
  9. * @return array 
  10. */ 
  11. public function inflectPackageVars($vars) 
  12. $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 
  13. $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 
  14. $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 
  15.  
  16. return $vars;