Skip to content

Commit

Permalink
Added support for Redaxo V 5.* (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFehr authored and niksamokhvalov committed Aug 7, 2019
1 parent 3a91638 commit 331f3d6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ is not needed to install packages with these frameworks:
| Porto | `porto-container`
| RadPHP | `radphp-bundle`
| REDAXO | `redaxo-addon`
| REDAXO bestyle-plugin | `redaxo-bestyle-plugin`
| REDAXO V5.* | `redaxo5-addon`
| REDAXO V5.* bestyle-plugin | `redaxo5-bestyle-plugin`
| ReIndex | **`reindex-plugin`** <br> **`reindex-theme`**
| Roundcube | `roundcube-plugin`
| shopware | `shopware-backend-plugin`<br/>`shopware-core-plugin`<br/>`shopware-frontend-plugin`<br/>`shopware-theme`<br/>`shopware-plugin`<br/>`shopware-frontend-theme`
Expand Down
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class Installer extends LibraryInstaller
'phifty' => 'PhiftyInstaller',
'porto' => 'PortoInstaller',
'redaxo' => 'RedaxoInstaller',
'redaxo5' => 'Redaxo5Installer',
'reindex' => 'ReIndexInstaller',
'roundcube' => 'RoundcubeInstaller',
'shopware' => 'ShopwareInstaller',
Expand Down
10 changes: 10 additions & 0 deletions src/Composer/Installers/Redaxo5Installer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
namespace Composer\Installers;

class Redaxo5Installer extends BaseInstaller
{
protected $locations = array(
'addon' => 'redaxo/src/addons/{$name}/',
'bestyle-plugin' => 'redaxo/src/addons/be_style/plugins/{$name}/'
);
}
4 changes: 4 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ public function dataForTestSupport()
array('radphp-bundle', true),
array('redaxo-addon', true),
array('redaxo-bestyle-plugin', true),
array('redaxo5-addon', true),
array('redaxo5-bestyle-plugin', true),
array('reindex-theme', true),
array('reindex-plugin', true),
array('roundcube-plugin', true),
Expand Down Expand Up @@ -395,6 +397,8 @@ public function dataForTestInstallPath()
array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
array('redaxo-addon', 'redaxo/include/addons/my_plugin/', 'shama/my_plugin'),
array('redaxo-bestyle-plugin', 'redaxo/include/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
array('redaxo5-addon', 'redaxo/src/addons/my_plugin/', 'shama/my_plugin'),
array('redaxo5-bestyle-plugin', 'redaxo/src/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
array('reindex-theme', 'themes/my_module/', 'author/my_module'),
array('reindex-plugin', 'plugins/my_module/', 'author/my_module'),
array('roundcube-plugin', 'plugins/base/', 'test/base'),
Expand Down

0 comments on commit 331f3d6

Please sign in to comment.