ComposerInstallersMauticInstaller

The WooCommerce Multilingual Composer Installers MauticInstaller class.

Defined (1)

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

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