diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index a9ba8aa5..22792f8a 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -3,12 +3,14 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Illuminate\Console\ConfirmableTrait; use Illuminate\Queue\QueueManager; use Illuminate\Support\Arr; use Laravel\Horizon\Contracts\JobRepository; use Laravel\Horizon\RedisQueue; +#[AsCommand(name: 'horizon:clear') class ClearCommand extends Command { use ConfirmableTrait; diff --git a/src/Console/ClearMetricsCommand.php b/src/Console/ClearMetricsCommand.php index 35b503ac..767baf13 100644 --- a/src/Console/ClearMetricsCommand.php +++ b/src/Console/ClearMetricsCommand.php @@ -3,8 +3,10 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Laravel\Horizon\Contracts\MetricsRepository; +#[AsCommand(name: 'horizon:clear-metrics') class ClearMetricsCommand extends Command { /** diff --git a/src/Console/ContinueCommand.php b/src/Console/ContinueCommand.php index 7a6050a3..06f0f0cc 100644 --- a/src/Console/ContinueCommand.php +++ b/src/Console/ContinueCommand.php @@ -7,7 +7,9 @@ use Illuminate\Support\Str; use Laravel\Horizon\Contracts\MasterSupervisorRepository; use Laravel\Horizon\MasterSupervisor; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:continue') class ContinueCommand extends Command { /** diff --git a/src/Console/ContinueSupervisorCommand.php b/src/Console/ContinueSupervisorCommand.php index c5643b3a..129a1d93 100644 --- a/src/Console/ContinueSupervisorCommand.php +++ b/src/Console/ContinueSupervisorCommand.php @@ -6,7 +6,9 @@ use Illuminate\Support\Str; use Laravel\Horizon\Contracts\SupervisorRepository; use Laravel\Horizon\MasterSupervisor; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:continue-supervisor') class ContinueSupervisorCommand extends Command { /** diff --git a/src/Console/ForgetFailedCommand.php b/src/Console/ForgetFailedCommand.php index 20114f33..c74809e7 100644 --- a/src/Console/ForgetFailedCommand.php +++ b/src/Console/ForgetFailedCommand.php @@ -3,8 +3,10 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Laravel\Horizon\Contracts\JobRepository; +#[AsCommand(name: 'horizon:forget') class ForgetFailedCommand extends Command { /** diff --git a/src/Console/HorizonCommand.php b/src/Console/HorizonCommand.php index 36fcf1f9..a08bba20 100644 --- a/src/Console/HorizonCommand.php +++ b/src/Console/HorizonCommand.php @@ -3,10 +3,12 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Laravel\Horizon\Contracts\MasterSupervisorRepository; use Laravel\Horizon\MasterSupervisor; use Laravel\Horizon\ProvisioningPlan; +#[AsCommand(name: 'horizon') class HorizonCommand extends Command { /** diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 67f0926c..0556e79c 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -5,7 +5,9 @@ use Illuminate\Console\Command; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Str; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:install') class InstallCommand extends Command { /** diff --git a/src/Console/ListCommand.php b/src/Console/ListCommand.php index 41a0f2b3..c76188dd 100644 --- a/src/Console/ListCommand.php +++ b/src/Console/ListCommand.php @@ -3,8 +3,10 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Laravel\Horizon\Contracts\MasterSupervisorRepository; +#[AsCommand(name: 'horizon:list') class ListCommand extends Command { /** diff --git a/src/Console/PauseCommand.php b/src/Console/PauseCommand.php index 7b253afc..e6048751 100644 --- a/src/Console/PauseCommand.php +++ b/src/Console/PauseCommand.php @@ -7,7 +7,9 @@ use Illuminate\Support\Str; use Laravel\Horizon\Contracts\MasterSupervisorRepository; use Laravel\Horizon\MasterSupervisor; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:pause') class PauseCommand extends Command { /** diff --git a/src/Console/PauseSupervisorCommand.php b/src/Console/PauseSupervisorCommand.php index ef9811a8..5935b10f 100644 --- a/src/Console/PauseSupervisorCommand.php +++ b/src/Console/PauseSupervisorCommand.php @@ -3,10 +3,12 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Illuminate\Support\Str; use Laravel\Horizon\Contracts\SupervisorRepository; use Laravel\Horizon\MasterSupervisor; +#[AsCommand(name: 'horizon:pause-supervisor') class PauseSupervisorCommand extends Command { /** diff --git a/src/Console/PublishCommand.php b/src/Console/PublishCommand.php index c20d8131..71df440d 100644 --- a/src/Console/PublishCommand.php +++ b/src/Console/PublishCommand.php @@ -3,7 +3,9 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:publish') class PublishCommand extends Command { /** diff --git a/src/Console/PurgeCommand.php b/src/Console/PurgeCommand.php index 16070d5c..f4f4a29c 100644 --- a/src/Console/PurgeCommand.php +++ b/src/Console/PurgeCommand.php @@ -3,6 +3,7 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Illuminate\Support\Str; use Laravel\Horizon\Contracts\MasterSupervisorRepository; use Laravel\Horizon\Contracts\ProcessRepository; @@ -10,6 +11,7 @@ use Laravel\Horizon\MasterSupervisor; use Laravel\Horizon\ProcessInspector; +#[AsCommand(name: 'horizon:purge') class PurgeCommand extends Command { /** diff --git a/src/Console/SnapshotCommand.php b/src/Console/SnapshotCommand.php index 3718b371..2e2a0d74 100644 --- a/src/Console/SnapshotCommand.php +++ b/src/Console/SnapshotCommand.php @@ -5,7 +5,9 @@ use Illuminate\Console\Command; use Laravel\Horizon\Contracts\MetricsRepository; use Laravel\Horizon\Lock; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:snapshot') class SnapshotCommand extends Command { /** diff --git a/src/Console/StatusCommand.php b/src/Console/StatusCommand.php index ba47910a..efccd1b6 100644 --- a/src/Console/StatusCommand.php +++ b/src/Console/StatusCommand.php @@ -3,8 +3,10 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Laravel\Horizon\Contracts\MasterSupervisorRepository; +#[AsCommand(name: 'horizon:status') class StatusCommand extends Command { /** diff --git a/src/Console/SupervisorCommand.php b/src/Console/SupervisorCommand.php index a4856c6c..ef0fb99e 100644 --- a/src/Console/SupervisorCommand.php +++ b/src/Console/SupervisorCommand.php @@ -6,7 +6,9 @@ use Illuminate\Console\Command; use Laravel\Horizon\SupervisorFactory; use Laravel\Horizon\SupervisorOptions; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:supervisor') class SupervisorCommand extends Command { /** diff --git a/src/Console/SupervisorsCommand.php b/src/Console/SupervisorsCommand.php index 4272646f..517c596e 100644 --- a/src/Console/SupervisorsCommand.php +++ b/src/Console/SupervisorsCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Horizon\Contracts\SupervisorRepository; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:supervisors') class SupervisorsCommand extends Command { /** diff --git a/src/Console/TerminateCommand.php b/src/Console/TerminateCommand.php index c0d8d476..d2581027 100644 --- a/src/Console/TerminateCommand.php +++ b/src/Console/TerminateCommand.php @@ -3,6 +3,7 @@ namespace Laravel\Horizon\Console; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; use Illuminate\Contracts\Cache\Factory as CacheFactory; use Illuminate\Support\Arr; use Illuminate\Support\InteractsWithTime; @@ -10,6 +11,7 @@ use Laravel\Horizon\Contracts\MasterSupervisorRepository; use Laravel\Horizon\MasterSupervisor; +#[AsCommand(name: 'horizon:terminate') class TerminateCommand extends Command { use InteractsWithTime; diff --git a/src/Console/TimeoutCommand.php b/src/Console/TimeoutCommand.php index f9173d47..54bd7c18 100644 --- a/src/Console/TimeoutCommand.php +++ b/src/Console/TimeoutCommand.php @@ -5,7 +5,9 @@ use Illuminate\Console\Command; use Laravel\Horizon\MasterSupervisor; use Laravel\Horizon\ProvisioningPlan; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'horizon:timeout') class TimeoutCommand extends Command { /**