From 09a2c9bb14b59a1f4b9900be4a38a215220cbe1c Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Thu, 24 Oct 2024 08:56:18 +0200 Subject: [PATCH] Remove deprecated things --- src/Command/BuildHooksCommand.php | 16 ---------------- src/Command/DeployHooksCommand.php | 16 ---------------- src/Deployment/PostBuildTaskInterface.php | 12 ------------ src/Deployment/PostDeploymentTaskInterface.php | 12 ------------ 4 files changed, 56 deletions(-) delete mode 100644 src/Deployment/PostBuildTaskInterface.php delete mode 100644 src/Deployment/PostDeploymentTaskInterface.php diff --git a/src/Command/BuildHooksCommand.php b/src/Command/BuildHooksCommand.php index e21aca7..e7bb8cc 100644 --- a/src/Command/BuildHooksCommand.php +++ b/src/Command/BuildHooksCommand.php @@ -12,7 +12,6 @@ #[AsCommand( "hosting:hook:build", description: "Runs the hooks for 'after the build finished'", - aliases: ["hosting:run-tasks:post-build"], )] final class BuildHooksCommand extends Command { @@ -34,21 +33,6 @@ protected function execute (InputInterface $input, OutputInterface $output) : in $io = new TaskCli($input, $output); $io->title("Run Build Hooks"); - // @todo remove code block + alias in v4 - if ("hosting:hook:build" !== $input->getFirstArgument()) - { - $message = \sprintf( - "The command `%s` was deprecated. Use `hosting:hook:build` instead.", - $input->getFirstArgument(), - ); - trigger_deprecation( - "21torr/hosting", - "3.1.0", - $message, - ); - $io->caution($message); - } - $this->runners->runBuildHooks($io); $io->newLine(); diff --git a/src/Command/DeployHooksCommand.php b/src/Command/DeployHooksCommand.php index bef5768..426dd1a 100644 --- a/src/Command/DeployHooksCommand.php +++ b/src/Command/DeployHooksCommand.php @@ -12,7 +12,6 @@ #[AsCommand( "hosting:hook:deploy", description: "Runs the hooks for 'after the deployment finished'", - aliases: ["hosting:run-tasks:post-deploy"], )] final class DeployHooksCommand extends Command { @@ -33,21 +32,6 @@ protected function execute (InputInterface $input, OutputInterface $output) : in $io = new TaskCli($input, $output); $io->title("Run Deploy Hooks"); - // @todo remove code block + alias in v4 - if ("hosting:hook:deploy" !== $input->getFirstArgument()) - { - $message = \sprintf( - "The command `%s` was deprecated. Use `hosting:hook:deploy` instead.", - $input->getFirstArgument(), - ); - trigger_deprecation( - "21torr/hosting", - "3.1.0", - $message, - ); - $io->caution($message); - } - $this->runners->runDeployHooks($io); $io->newLine(); diff --git a/src/Deployment/PostBuildTaskInterface.php b/src/Deployment/PostBuildTaskInterface.php deleted file mode 100644 index d58051c..0000000 --- a/src/Deployment/PostBuildTaskInterface.php +++ /dev/null @@ -1,12 +0,0 @@ -