From e2f1cda77f245bf22177d5291643645701f7cfc7 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Thu, 26 Aug 2021 17:46:40 -0500 Subject: [PATCH 1/2] Fix Pantheon Quicksilver registration --- src/Composer/Installers/Installer.php | 1 + src/Composer/Installers/PantheonInstaller.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installers/Installer.php b/src/Composer/Installers/Installer.php index 490681cf..6ebaabae 100644 --- a/src/Composer/Installers/Installer.php +++ b/src/Composer/Installers/Installer.php @@ -87,6 +87,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 index 8f12537c..da14e992 100644 --- a/src/Composer/Installers/PantheonInstaller.php +++ b/src/Composer/Installers/PantheonInstaller.php @@ -6,7 +6,7 @@ class PantheonInstaller extends BaseInstaller { /** @var array */ protected $locations = array( - 'quicksilver-script' => 'web/private/scripts/quicksilver/{$name}/', - 'quicksilver-module' => 'web/private/scripts/quicksilver/{$name}/', + 'script' => 'web/private/scripts/quicksilver/{$name}/', + 'module' => 'web/private/scripts/quicksilver/{$name}/', ); } From 030db504eabe0bbc3d6c296cc7637e1f4e7b3424 Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Tue, 31 Aug 2021 23:48:06 -0500 Subject: [PATCH 2/2] Add test for Pantheon Quicksilver --- src/Composer/Installers/PantheonInstaller.php | 4 ++-- tests/Composer/Installers/Test/InstallerTest.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Composer/Installers/PantheonInstaller.php b/src/Composer/Installers/PantheonInstaller.php index da14e992..439f61a0 100644 --- a/src/Composer/Installers/PantheonInstaller.php +++ b/src/Composer/Installers/PantheonInstaller.php @@ -6,7 +6,7 @@ class PantheonInstaller extends BaseInstaller { /** @var array */ protected $locations = array( - 'script' => 'web/private/scripts/quicksilver/{$name}/', - 'module' => 'web/private/scripts/quicksilver/{$name}/', + '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 b51241db..f9fa0568 100644 --- a/tests/Composer/Installers/Test/InstallerTest.php +++ b/tests/Composer/Installers/Test/InstallerTest.php @@ -188,6 +188,8 @@ public function supportsProvider(): array array('puppet-module', true), array('porto-container', true), array('processwire-module', true), + array('quicksilver-script', true), + array('quicksilver-module', true), array('radphp-bundle', true), array('redaxo-addon', true), array('redaxo-bestyle-plugin', true), @@ -391,6 +393,8 @@ public function installPathProvider(): array 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'),