Skip to content

Commit

Permalink
Merge pull request #494 from kyletaylored/fix-pantheon
Browse files Browse the repository at this point in the history
Fix Pantheon Quicksilver support
  • Loading branch information
Seldaek committed Sep 3, 2021
2 parents 5a546a8 + 030db50 commit 6608c3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Composer/Installers/Installer.php
Expand Up @@ -87,6 +87,7 @@ class Installer extends LibraryInstaller
'phifty' => 'PhiftyInstaller',
'porto' => 'PortoInstaller',
'processwire' => 'ProcessWireInstaller',
'quicksilver' => 'PantheonInstaller',
'redaxo' => 'RedaxoInstaller',
'redaxo5' => 'Redaxo5Installer',
'reindex' => 'ReIndexInstaller',
Expand Down
4 changes: 2 additions & 2 deletions src/Composer/Installers/PantheonInstaller.php
Expand Up @@ -6,7 +6,7 @@ class PantheonInstaller extends BaseInstaller
{
/** @var array<string, string> */
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}',
);
}
4 changes: 4 additions & 0 deletions tests/Composer/Installers/Test/InstallerTest.php
Expand Up @@ -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),
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 6608c3d

Please sign in to comment.