Skip to content

Commit ed1c7f8

Browse files
authored
Merge pull request #495 from kyletaylored/1.x
Add Pantheon Quicksilver
2 parents 1e8a161 + 88e7005 commit ed1c7f8

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ is not needed to install packages with these frameworks:
9090
| Osclass | `osclass-plugin`<br>`osclass-theme`<br>`osclass-language`
9191
| MODULEWork | `modulework-module`
9292
| Moodle | `moodle-*` (Please [check source](https://github.com/composer/installers/blob/main/src/Composer/Installers/MoodleInstaller.php) for all supported types)
93+
| Pantheon | `quicksilver-script`<br>`quicksilver-module`
9394
| Piwik | `piwik-plugin`
9495
| Phifty | `phifty-bundle`<br>`phifty-framework`<br>`phifty-library`
9596
| phpBB | `phpbb-extension`<br>`phpbb-style`<br>`phpbb-language`

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"osclass",
5252
"MODULEWork",
5353
"Moodle",
54+
"Pantheon",
5455
"Piwik",
5556
"pxcms",
5657
"phpBB",

src/Composer/Installers/Installer.php

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class Installer extends LibraryInstaller
9191
'phifty' => 'PhiftyInstaller',
9292
'porto' => 'PortoInstaller',
9393
'processwire' => 'ProcessWireInstaller',
94+
'quicksilver' => 'PantheonInstaller',
9495
'redaxo' => 'RedaxoInstaller',
9596
'redaxo5' => 'Redaxo5Installer',
9697
'reindex' => 'ReIndexInstaller',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Composer\Installers;
4+
5+
class PantheonInstaller extends BaseInstaller
6+
{
7+
/** @var array<string, string> */
8+
protected $locations = array(
9+
'script' => 'web/private/scripts/quicksilver/{$name}',
10+
'module' => 'web/private/scripts/quicksilver/{$name}',
11+
);
12+
}

tests/Composer/Installers/Test/InstallerTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ public function dataForTestSupport()
186186
array('moodle-mod', true),
187187
array('october-module', true),
188188
array('october-plugin', true),
189+
array('quicksilver-script', true),
190+
array('quicksilver-module', true),
189191
array('piwik-plugin', true),
190192
array('pxcms-module', true),
191193
array('pxcms-theme', true),
@@ -413,6 +415,8 @@ public function dataForTestInstallPath()
413415
array('porto-container', 'app/Containers/container-name/', 'test/container-name'),
414416
array('radphp-bundle', 'src/Migration/', 'atkrad/migration'),
415417
array('processwire-module', 'site/modules/HelloWorld/', 'test/hello-world'),
418+
array('quicksilver-script', 'web/private/scripts/quicksilver/quicksilver-script', 'shama/quicksilver-script'),
419+
array('quicksilver-module', 'web/private/scripts/quicksilver/quicksilver-module', 'shama/quicksilver-module'),
416420
array('redaxo-addon', 'redaxo/include/addons/my_plugin/', 'shama/my_plugin'),
417421
array('redaxo-bestyle-plugin', 'redaxo/include/addons/be_style/plugins/my_plugin/', 'shama/my_plugin'),
418422
array('redaxo5-addon', 'redaxo/src/addons/my_plugin/', 'shama/my_plugin'),

0 commit comments

Comments
 (0)