2 namespace Composer\Installers;
4 class MauticInstaller extends BaseInstaller
6 protected $locations = array(
7 'plugin' => 'plugins/{$name}/',
8 'theme' => 'themes/{$name}/',
12 * Format package name of mautic-plugins to CamelCase
14 public function inflectPackageVars($vars)
16 if ($vars['type'] == 'mautic-plugin') {
17 $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
18 return strtoupper($matches[0][1]);
19 }, ucfirst($vars['name']));