Skip to content

Commit

Permalink
Add Pantheon Quicksilver
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletaylored committed Sep 11, 2021
1 parent 1e8a161 commit 88e7005
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ is not needed to install packages with these frameworks:
| Osclass | `osclass-plugin`<br>`osclass-theme`<br>`osclass-language`
| MODULEWork | `modulework-module`
| Moodle | `moodle-*` (Please [check source](https://github.com/composer/installers/blob/main/src/Composer/Installers/MoodleInstaller.php) for all supported types)
| Pantheon | `quicksilver-script`<br>`quicksilver-module`
| Piwik | `piwik-plugin`
| Phifty | `phifty-bundle`<br>`phifty-framework`<br>`phifty-library`
| phpBB | `phpbb-extension`<br>`phpbb-style`<br>`phpbb-language`
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"osclass",
"MODULEWork",
"Moodle",
"Pantheon",
"Piwik",
"pxcms",
"phpBB",
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 @@ -91,6 +91,7 @@ class Installer extends LibraryInstaller
'phifty' => 'PhiftyInstaller',
'porto' => 'PortoInstaller',
'processwire' => 'ProcessWireInstaller',
'quicksilver' => 'PantheonInstaller',
'redaxo' => 'RedaxoInstaller',
'redaxo5' => 'Redaxo5Installer',
'reindex' => 'ReIndexInstaller',
Expand Down
12 changes: 12 additions & 0 deletions src/Composer/Installers/PantheonInstaller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Composer\Installers;

class PantheonInstaller extends BaseInstaller
{
/** @var array<string, string> */
protected $locations = array(
'script' => 'web/private/scripts/quicksilver/{$name}',
'module' => 'web/private/scripts/quicksilver/{$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 @@ -186,6 +186,8 @@ public function dataForTestSupport()
array('moodle-mod', true),
array('october-module', true),
array('october-plugin', true),
array('quicksilver-script', true),
array('quicksilver-module', true),
array('piwik-plugin', true),
array('pxcms-module', true),
array('pxcms-theme', true),
Expand Down Expand Up @@ -413,6 +415,8 @@ public function dataForTestInstallPath()
array('porto-container', 'app/Containers/container-name/', 'test/container-name'),
array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
array('processwire-module', 'site/modules/HelloWorld/', 'test/hello-world'),
array('quicksilver-script', 'web/private/scripts/quicksilver/quicksilver-script', 'shama/quicksilver-script'),
array('quicksilver-module', 'web/private/scripts/quicksilver/quicksilver-module', 'shama/quicksilver-module'),
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'),
Expand Down

0 comments on commit 88e7005

Please sign in to comment.