From d5c6d341ccbb3c00a1b22f2b59fc1c126136b38f Mon Sep 17 00:00:00 2001 From: Elaman Imashov <1479020+elaman@users.noreply.github.com> Date: Mon, 8 Apr 2024 20:16:39 +0600 Subject: [PATCH 1/2] Update DeployCommands.php Fixes the issue #5952 --- src/Commands/core/DeployCommands.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Commands/core/DeployCommands.php b/src/Commands/core/DeployCommands.php index 7222b6322b..3f7f9688a0 100644 --- a/src/Commands/core/DeployCommands.php +++ b/src/Commands/core/DeployCommands.php @@ -34,6 +34,7 @@ public function __construct( #[CLI\Version(version: '10.3')] #[CLI\Topics(topics: [DocsCommands::DEPLOY])] #[CLI\Bootstrap(level: DrupalBootLevels::FULL)] + #[CLI\Kernel(name: 'update')] public function deploy(): void { $self = $this->siteAliasManager->getSelf(); From 13289d799f770454504d98571d7f2cb55e48c68f Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Tue, 9 Apr 2024 16:25:18 -0400 Subject: [PATCH 2/2] Dont bootstrap with deploy command --- src/Commands/core/DeployCommands.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Commands/core/DeployCommands.php b/src/Commands/core/DeployCommands.php index 3f7f9688a0..24a93a4b1e 100644 --- a/src/Commands/core/DeployCommands.php +++ b/src/Commands/core/DeployCommands.php @@ -14,6 +14,7 @@ use Drush\Commands\DrushCommands; use Drush\Drush; +#[CLI\Bootstrap(DrupalBootLevels::NONE)] final class DeployCommands extends DrushCommands { use AutowireTrait; @@ -33,8 +34,6 @@ public function __construct( #[CLI\Usage(name: 'drush deploy -v -y', description: 'Run updates with verbose logging and accept all prompts.')] #[CLI\Version(version: '10.3')] #[CLI\Topics(topics: [DocsCommands::DEPLOY])] - #[CLI\Bootstrap(level: DrupalBootLevels::FULL)] - #[CLI\Kernel(name: 'update')] public function deploy(): void { $self = $this->siteAliasManager->getSelf();