We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93bcf0 commit 8669edfCopy full SHA for 8669edf
src/Composer/Installers/TaoInstaller.php
@@ -6,7 +6,25 @@
6
*/
7
class TaoInstaller extends BaseInstaller
8
{
9
+ const EXTRA_TAO_EXTENSION_NAME = 'tao-extension-name';
10
+
11
protected $locations = array(
12
'extension' => '{$name}'
13
);
14
15
+ public function inflectPackageVars($vars)
16
+ {
17
+ $extra = $this->package->getExtra();
18
19
+ if (array_key_exists(self::EXTRA_TAO_EXTENSION_NAME, $extra)) {
20
+ $vars['name'] = $extra[self::EXTRA_TAO_EXTENSION_NAME];
21
+ return $vars;
22
+ }
23
24
+ $vars['name'] = str_replace('extension-', '', $vars['name']);
25
+ $vars['name'] = str_replace('-', ' ', $vars['name']);
26
+ $vars['name'] = lcfirst(str_replace(' ', '', ucwords($vars['name'])));
27
28
29
30
}
0 commit comments