From 88e70058d731624b5f290bfa4b637bbcbda7a5c9 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Sat, 11 Sep 2021 01:26:28 -0500 Subject: [PATCH] Add Pantheon Quicksilver --- README.md | 1 + composer.json | 1 + src/Composer/Installers/Installer.php | 1 + src/Composer/Installers/PantheonInstaller.php | 12 ++++++++++++ tests/Composer/Installers/Test/InstallerTest.php | 4 ++++ 5 files changed, 19 insertions(+) create mode 100644 src/Composer/Installers/PantheonInstaller.php diff --git a/README.md b/README.md index ebfd75e2..ae2d319c 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ is not needed to install packages with these frameworks: | Osclass | `osclass-plugin`
`osclass-theme`
`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`
`quicksilver-module` | Piwik | `piwik-plugin` | Phifty | `phifty-bundle`
`phifty-framework`
`phifty-library` | phpBB | `phpbb-extension`
`phpbb-style`
`phpbb-language` diff --git a/composer.json b/composer.json index eff02639..4a7fd3c3 100644 --- a/composer.json +++ b/composer.json @@ -51,6 +51,7 @@ "osclass", "MODULEWork", "Moodle", + "Pantheon", "Piwik", "pxcms", "phpBB", diff --git a/src/Composer/Installers/Installer.php b/src/Composer/Installers/Installer.php index f5d934ff..9c9c24f7 100644 --- a/src/Composer/Installers/Installer.php +++ b/src/Composer/Installers/Installer.php @@ -91,6 +91,7 @@ class Installer extends LibraryInstaller 'phifty' => 'PhiftyInstaller', 'porto' => 'PortoInstaller', 'processwire' => 'ProcessWireInstaller', + 'quicksilver' => 'PantheonInstaller', 'redaxo' => 'RedaxoInstaller', 'redaxo5' => 'Redaxo5Installer', 'reindex' => 'ReIndexInstaller', diff --git a/src/Composer/Installers/PantheonInstaller.php b/src/Composer/Installers/PantheonInstaller.php new file mode 100644 index 00000000..439f61a0 --- /dev/null +++ b/src/Composer/Installers/PantheonInstaller.php @@ -0,0 +1,12 @@ + */ + protected $locations = array( + 'script' => 'web/private/scripts/quicksilver/{$name}', + 'module' => 'web/private/scripts/quicksilver/{$name}', + ); +} diff --git a/tests/Composer/Installers/Test/InstallerTest.php b/tests/Composer/Installers/Test/InstallerTest.php index addc40bd..37cd9b2e 100644 --- a/tests/Composer/Installers/Test/InstallerTest.php +++ b/tests/Composer/Installers/Test/InstallerTest.php @@ -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), @@ -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'),