We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 236a390 + b985936 commit a29d998Copy full SHA for a29d998
README.md
@@ -77,6 +77,7 @@ is not needed to install packages with these frameworks:
77
| Piwik | `piwik-plugin`
78
| phpBB | `phpbb-extension`<br>`phpbb-style`<br>`phpbb-language`
79
| Pimcore | `pimcore-plugin`
80
+| Plentymarkets | `plentymarkets-plugin`
81
| PPI | **`ppi-module`**
82
| Puppet | `puppet-module`
83
| RadPHP | `radphp-bundle`
composer.json
@@ -40,6 +40,7 @@
40
"Moodle",
41
"Piwik",
42
"phpBB",
43
+ "Plentymarkets",
44
"PPI",
45
"Puppet",
46
"RadPHP",
src/Composer/Installers/Installer.php
@@ -60,6 +60,7 @@ class Installer extends LibraryInstaller
60
'phpbb' => 'PhpBBInstaller',
61
'pimcore' => 'PimcoreInstaller',
62
'piwik' => 'PiwikInstaller',
63
+ 'plentymarkets'=> 'PlentymarketsInstaller',
64
'ppi' => 'PPIInstaller',
65
'puppet' => 'PuppetInstaller',
66
'radphp' => 'RadPHPInstaller',
src/Composer/Installers/PlentymarketsInstaller.php
@@ -0,0 +1,29 @@
1
+<?php
2
+namespace Composer\Installers;
3
+
4
+class PlentymarketsInstaller extends BaseInstaller
5
+{
6
+ protected $locations = array(
7
+ 'plugin' => '{$name}/'
8
+ );
9
10
+ /**
11
+ * Remove hyphen, "plugin" and format to camelcase
12
+ * @param array $vars
13
+ *
14
+ * @return array
15
+ */
16
+ public function inflectPackageVars($vars)
17
+ {
18
+ $vars['name'] = explode("-", $vars['name']);
19
+ foreach ($vars['name'] as $key => $name) {
20
+ $vars['name'][$key] = ucfirst($vars['name'][$key]);
21
+ if (strcasecmp($name, "Plugin") == 0) {
22
+ unset($vars['name'][$key]);
23
+ }
24
25
+ $vars['name'] = implode("",$vars['name']);
26
27
+ return $vars;
28
29
+}
tests/Composer/Installers/Test/InstallerTest.php
@@ -153,6 +153,7 @@ public function dataForTestSupport()
153
array('piwik-plugin', true),
154
array('phpbb-extension', true),
155
array('pimcore-plugin', true),
156
+ array('plentymarkets-plugin', true),
157
array('ppi-module', true),
158
array('prestashop-module', true),
159
array('prestashop-theme', true),
@@ -298,6 +299,7 @@ public function dataForTestInstallPath()
298
299
array('phpbb-style', 'styles/foo/', 'test/foo'),
300
array('phpbb-language', 'language/foo/', 'test/foo'),
301
array('pimcore-plugin', 'plugins/MyPlugin/', 'ubikz/my_plugin'),
302
+ array('plentymarkets-plugin', 'HelloWorld/', 'plugin-hello-world'),
303
array('ppi-module', 'modules/foo/', 'test/foo'),
304
array('puppet-module', 'modules/puppet-name/', 'puppet/puppet-name'),
305
array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
0 commit comments