Blame view

vendor/composer/installers/src/Composer/Installers/AglInstaller.php 457 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php
  namespace Composer\Installers;
  
  class AglInstaller extends BaseInstaller
  {
      protected $locations = array(
          'module' => 'More/{$name}/',
      );
  
      /**
       * Format package name to CamelCase
       */
      public function inflectPackageVars($vars)
      {
          $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
              return strtoupper($matches[1]);
          }, $vars['name']);
  
          return $vars;
      }
  }