Skip to content

Commit

Permalink
Add support for Sylius themes (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthid committed Feb 7, 2020
1 parent 71a969f commit 23a86c5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ is not needed to install packages with these frameworks:
| SiteDirect | `sitedirect-module`<br>`sitedirect-plugin`
| SMF | `smf-module`<br>`smf-theme`
| SyDES | `sydes-module`<br>`sydes-theme`
| Sylius | `sylius-theme`
| symfony1 | **`symfony1-plugin`**
| TAO | `tao-extension`
| Tusk | `tusk-task`<br>`tusk-command`<br>`tusk-asset`
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"SilverStripe",
"SMF",
"SyDES",
"Sylius",
"symfony",
"Thelia",
"TYPO3",
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 @@ -96,6 +96,7 @@ class Installer extends LibraryInstaller
'silverstripe' => 'SilverStripeInstaller',
'smf' => 'SMFInstaller',
'sydes' => 'SyDESInstaller',
'sylius' => 'SyliusInstaller',
'symfony1' => 'Symfony1Installer',
'tao' => 'TaoInstaller',
'thelia' => 'TheliaInstaller',
Expand Down
9 changes: 9 additions & 0 deletions src/Composer/Installers/SyliusInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
namespace Composer\Installers;

class SyliusInstaller extends BaseInstaller
{
protected $locations = array(
'theme' => 'themes/{$name}/',
);
}
2 changes: 2 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public function dataForTestSupport()
array('smf-theme', true),
array('sydes-module', true),
array('sydes-theme', true),
array('sylius-theme', true),
array('symfony1-plugin', true),
array('thelia-module', true),
array('thelia-frontoffice-template', true),
Expand Down Expand Up @@ -419,6 +420,7 @@ public function dataForTestInstallPath()
array('silverstripe-theme', 'themes/my_theme/', 'shama/my_theme'),
array('smf-module', 'Sources/my_module/', 'shama/my_module'),
array('smf-theme', 'Themes/my_theme/', 'shama/my_theme'),
array('sylius-theme', 'themes/my_theme/', 'shama/my_theme'),
array('symfony1-plugin', 'plugins/sfShamaPlugin/', 'shama/sfShamaPlugin'),
array('symfony1-plugin', 'plugins/sfShamaPlugin/', 'shama/sf-shama-plugin'),
array('thelia-module', 'local/modules/my_module/', 'shama/my_module'),
Expand Down

0 comments on commit 23a86c5

Please sign in to comment.