Skip to content

Commit 331f3d6

Browse files
TheFehrniksamokhvalov
authored andcommitted
Added support for Redaxo V 5.* (#410)
1 parent 3a91638 commit 331f3d6

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ is not needed to install packages with these frameworks:
9797
| Porto | `porto-container`
9898
| RadPHP | `radphp-bundle`
9999
| REDAXO | `redaxo-addon`
100+
| REDAXO bestyle-plugin | `redaxo-bestyle-plugin`
101+
| REDAXO V5.* | `redaxo5-addon`
102+
| REDAXO V5.* bestyle-plugin | `redaxo5-bestyle-plugin`
100103
| ReIndex | **`reindex-plugin`** <br> **`reindex-theme`**
101104
| Roundcube | `roundcube-plugin`
102105
| shopware | `shopware-backend-plugin`<br/>`shopware-core-plugin`<br/>`shopware-frontend-plugin`<br/>`shopware-theme`<br/>`shopware-plugin`<br/>`shopware-frontend-theme`

src/Composer/Installers/Installer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class Installer extends LibraryInstaller
8787
'phifty' => 'PhiftyInstaller',
8888
'porto' => 'PortoInstaller',
8989
'redaxo' => 'RedaxoInstaller',
90+
'redaxo5' => 'Redaxo5Installer',
9091
'reindex' => 'ReIndexInstaller',
9192
'roundcube' => 'RoundcubeInstaller',
9293
'shopware' => 'ShopwareInstaller',
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
namespace Composer\Installers;
3+
4+
class Redaxo5Installer extends BaseInstaller
5+
{
6+
protected $locations = array(
7+
'addon' => 'redaxo/src/addons/{$name}/',
8+
'bestyle-plugin' => 'redaxo/src/addons/be_style/plugins/{$name}/'
9+
);
10+
}

tests/Composer/Installers/Test/InstallerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ public function dataForTestSupport()
197197
array('radphp-bundle', true),
198198
array('redaxo-addon', true),
199199
array('redaxo-bestyle-plugin', true),
200+
array('redaxo5-addon', true),
201+
array('redaxo5-bestyle-plugin', true),
200202
array('reindex-theme', true),
201203
array('reindex-plugin', true),
202204
array('roundcube-plugin', true),
@@ -395,6 +397,8 @@ public function dataForTestInstallPath()
395397
array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
396398
array('redaxo-addon', 'redaxo/include/addons/my_plugin/', 'shama/my_plugin'),
397399
array('redaxo-bestyle-plugin', 'redaxo/include/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
400+
array('redaxo5-addon', 'redaxo/src/addons/my_plugin/', 'shama/my_plugin'),
401+
array('redaxo5-bestyle-plugin', 'redaxo/src/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
398402
array('reindex-theme', 'themes/my_module/', 'author/my_module'),
399403
array('reindex-plugin', 'plugins/my_module/', 'author/my_module'),
400404
array('roundcube-plugin', 'plugins/base/', 'test/base'),

0 commit comments

Comments
 (0)