Skip to content
Snippets Groups Projects
Commit 7b7ef5ca authored by GitLab CI's avatar GitLab CI
Browse files

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !3
parents 290539b9 0d182eb2
No related branches found
No related tags found
1 merge request!3Merging develop into main
Pipeline #1256066 passed
......@@ -26,6 +26,22 @@ class Plugin implements PluginInterface {
$this->installer = new Installer($io, $composer);
$composer->getInstallationManager()->addInstaller($this->installer);
$extra = $composer->getPackage()->getExtra();
if ($extra['lakedrops-default'] ?? FALSE) {
$default = [
'lakedrops-config-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/config.json',
'lakedrops-curated-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/curated.json',
'lakedrops-extra-drupal-scaffold-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/drupal-scaffold.json',
'lakedrops-extra-drupal-libraries-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/drupal-libraries.json',
'lakedrops-extra-installer-types-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/installer-types.json',
'lakedrops-extra-installer-paths-file' => 'https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/defaults/installer-paths.json',
];
foreach ($default as $key => $value) {
if (!isset($extra[$key])) {
$extra[$key] = $value;
}
}
}
if (isset($extra['lakedrops-config-file']) || isset($extra['lakedrops-curated-file'])) {
if (isset($extra['lakedrops-config-file'])) {
foreach ($this->readJson('config', $extra['lakedrops-config-file'], $io) as $key => $value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment