Skip to content
Snippets Groups Projects
Commit 9932ed1c authored by jurgenhaas's avatar jurgenhaas
Browse files

Do no longer update configuration after composer update, because that may use outdated plugin code

parent f5135330
No related branches found
No related tags found
1 merge request!63Merging develop into main
Pipeline #784413 passed
......@@ -265,6 +265,19 @@ class Handler extends BaseHandler {
}
}
/**
* Update Drupal Project for Docker.
*/
public function updateProject(): void {
// We only do the fancy stuff for developers.
if (!$this->isDevMode()) {
return;
}
$this->io->info('You may have to update your Docker4Drupal environment by running "composer lakedrops:docker4drupal".');
}
/**
* Configure Drupal Project for Docker.
*/
......
......@@ -34,7 +34,7 @@ class Plugin extends BasePlugin {
return [
ScriptEvents::POST_CREATE_PROJECT_CMD => 'configureProject',
ScriptEvents::POST_INSTALL_CMD => 'configureProject',
ScriptEvents::POST_UPDATE_CMD => 'configureProject',
ScriptEvents::POST_UPDATE_CMD => 'updateProject',
];
}
......@@ -52,4 +52,18 @@ class Plugin extends BasePlugin {
->configureProject();
}
/**
* Update project event callback.
*
* @param \Composer\Script\Event $event
* The event that triggered the call of this function.
*/
public function updateProject(Event $event): void {
/** @var Handler $handler */
$handler = $this->handler;
$handler
->setEvent($event)
->updateProject();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment