Skip to content

Commit 23a86c5

Browse files
authored
Add support for Sylius themes (#445)
1 parent 71a969f commit 23a86c5

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ is not needed to install packages with these frameworks:
108108
| SiteDirect | `sitedirect-module`<br>`sitedirect-plugin`
109109
| SMF | `smf-module`<br>`smf-theme`
110110
| SyDES | `sydes-module`<br>`sydes-theme`
111+
| Sylius | `sylius-theme`
111112
| symfony1 | **`symfony1-plugin`**
112113
| TAO | `tao-extension`
113114
| Tusk | `tusk-task`<br>`tusk-command`<br>`tusk-asset`

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"SilverStripe",
6565
"SMF",
6666
"SyDES",
67+
"Sylius",
6768
"symfony",
6869
"Thelia",
6970
"TYPO3",

src/Composer/Installers/Installer.php

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class Installer extends LibraryInstaller
9696
'silverstripe' => 'SilverStripeInstaller',
9797
'smf' => 'SMFInstaller',
9898
'sydes' => 'SyDESInstaller',
99+
'sylius' => 'SyliusInstaller',
99100
'symfony1' => 'Symfony1Installer',
100101
'tao' => 'TaoInstaller',
101102
'thelia' => 'TheliaInstaller',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
namespace Composer\Installers;
3+
4+
class SyliusInstaller extends BaseInstaller
5+
{
6+
protected $locations = array(
7+
'theme' => 'themes/{$name}/',
8+
);
9+
}

tests/Composer/Installers/Test/InstallerTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ public function dataForTestSupport()
215215
array('smf-theme', true),
216216
array('sydes-module', true),
217217
array('sydes-theme', true),
218+
array('sylius-theme', true),
218219
array('symfony1-plugin', true),
219220
array('thelia-module', true),
220221
array('thelia-frontoffice-template', true),
@@ -419,6 +420,7 @@ public function dataForTestInstallPath()
419420
array('silverstripe-theme', 'themes/my_theme/', 'shama/my_theme'),
420421
array('smf-module', 'Sources/my_module/', 'shama/my_module'),
421422
array('smf-theme', 'Themes/my_theme/', 'shama/my_theme'),
423+
array('sylius-theme', 'themes/my_theme/', 'shama/my_theme'),
422424
array('symfony1-plugin', 'plugins/sfShamaPlugin/', 'shama/sfShamaPlugin'),
423425
array('symfony1-plugin', 'plugins/sfShamaPlugin/', 'shama/sf-shama-plugin'),
424426
array('thelia-module', 'local/modules/my_module/', 'shama/my_module'),

0 commit comments

Comments
 (0)