| 1 |
<?php |
| 2 |
|
| 3 |
namespace Composer\Installers; |
| 4 |
|
| 5 |
class RoundcubeInstaller extends BaseInstaller |
| 6 |
{ |
| 7 |
/** @var array<string, string> */ |
| 8 |
protected $locations = array( |
| 9 |
'plugin' => 'plugins/{$name}/', |
| 10 |
); |
| 11 |
|
| 12 |
/** |
| 13 |
* Lowercase name and changes the name to a underscores |
| 14 |
*/ |
| 15 |
public function inflectPackageVars(array $vars): array |
| 16 |
{ |
| 17 |
$vars['name'] = strtolower(str_replace('-', '_', $vars['name'])); |
| 18 |
|
| 19 |
return $vars; |
| 20 |
} |
| 21 |
} |
| 22 |
|