ComposerInstallersPlentymarketsInstaller

The Simple Calendar Composer Installers PlentymarketsInstaller class.

Defined (1)

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

/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php  
  1. class PlentymarketsInstaller extends BaseInstaller 
  2. protected $locations = array( 
  3. 'plugin' => '{$name}/' 
  4. ); 
  5.  
  6. /** 
  7. * Remove hyphen, "plugin" and format to camelcase 
  8. * @param array $vars 
  9. * @return array 
  10. */ 
  11. public function inflectPackageVars($vars) 
  12. $vars['name'] = explode("-", $vars['name']); 
  13. foreach ($vars['name'] as $key => $name) { 
  14. $vars['name'][$key] = ucfirst($vars['name'][$key]); 
  15. if (strcasecmp($name, "Plugin") == 0) { 
  16. unset($vars['name'][$key]); 
  17. $vars['name'] = implode("", $vars['name']); 
  18.  
  19. return $vars;