| 1 |
<?php |
| 2 |
namespace Composer\Installers; |
| 3 |
|
| 4 |
class CroogoInstaller extends BaseInstaller |
| 5 |
{ |
| 6 |
protected $locations = array( |
| 7 |
'plugin' => 'Plugin/{$name}/', |
| 8 |
'theme' => 'View/Themed/{$name}/', |
| 9 |
); |
| 10 |
|
| 11 |
/** |
| 12 |
* Format package name to CamelCase |
| 13 |
*/ |
| 14 |
public function inflectPackageVars($vars) |
| 15 |
{ |
| 16 |
$vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name'])); |
| 17 |
$vars['name'] = str_replace(' ', '', ucwords($vars['name'])); |
| 18 |
|
| 19 |
return $vars; |
| 20 |
} |
| 21 |
} |
| 22 |
|