Skip to content

Commit bba88eb

Browse files
Merge pull request #321 from Nitaco/master
Add missing environments for new Shopware(5.2) Plugin System
2 parents a29d998 + 0976f7a commit bba88eb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Composer/Installers/ShopwareInstaller.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class ShopwareInstaller extends BaseInstaller
1111
'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
1212
'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/',
1313
'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/',
14-
'theme' => 'templates/{$name}/'
14+
'theme' => 'templates/{$name}/',
15+
'plugin' => 'custom/plugins/{$name}/',
16+
'frontend-theme' => 'themes/Frontend/{$name}/',
1517
);
1618

1719
/**

tests/Composer/Installers/Test/InstallerTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public function dataForTestSupport()
168168
array('shopware-core-plugin', true),
169169
array('shopware-frontend-plugin', true),
170170
array('shopware-theme', true),
171+
array('shopware-plugin', true),
172+
array('shopware-frontend-theme', true),
171173
array('silverstripe-module', true),
172174
array('silverstripe-theme', true),
173175
array('smf-module', true),
@@ -313,6 +315,8 @@ public function dataForTestInstallPath()
313315
array('shopware-core-plugin', 'engine/Shopware/Plugins/Local/Core/ShamaMyCorePlugin/', 'shama/my-core-plugin'),
314316
array('shopware-frontend-plugin', 'engine/Shopware/Plugins/Local/Frontend/ShamaMyFrontendPlugin/', 'shama/my-frontend-plugin'),
315317
array('shopware-theme', 'templates/my_theme/', 'shama/my-theme'),
318+
array('shopware-frontend-theme', 'themes/Frontend/ShamaMyFrontendTheme/', 'shama/my-frontend-theme'),
319+
array('shopware-plugin', 'custom/plugins/ShamaMyPlugin/', 'shama/my-plugin'),
316320
array('silverstripe-module', 'my_module/', 'shama/my_module'),
317321
array('silverstripe-module', 'sapphire/', 'silverstripe/framework', '2.4.0'),
318322
array('silverstripe-module', 'framework/', 'silverstripe/framework', '3.0.0'),

0 commit comments

Comments
 (0)