Skip to content

Commit

Permalink
Remove deprecated things
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Oct 24, 2024
1 parent 1fbc9aa commit 09a2c9b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 56 deletions.
16 changes: 0 additions & 16 deletions src/Command/BuildHooksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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();
Expand Down
16 changes: 0 additions & 16 deletions src/Command/DeployHooksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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();
Expand Down
12 changes: 0 additions & 12 deletions src/Deployment/PostBuildTaskInterface.php

This file was deleted.

12 changes: 0 additions & 12 deletions src/Deployment/PostDeploymentTaskInterface.php

This file was deleted.

0 comments on commit 09a2c9b

Please sign in to comment.