Commit f543793 1 parent 7dc7c05 commit f543793 Copy full SHA for f543793
File tree 18 files changed +36
-0
lines changed
18 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Illuminate \Console \ConfirmableTrait ;
7
8
use Illuminate \Queue \QueueManager ;
8
9
use Illuminate \Support \Arr ;
9
10
use Laravel \Horizon \Contracts \JobRepository ;
10
11
use Laravel \Horizon \RedisQueue ;
11
12
13
+ #[AsCommand(name: 'horizon:clear ' )
12
14
class ClearCommand extends Command
13
15
{
14
16
use ConfirmableTrait ;
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Laravel \Horizon \Contracts \MetricsRepository ;
7
8
9
+ #[AsCommand(name: 'horizon:clear-metrics ' )
8
10
class ClearMetricsCommand extends Command
9
11
{
10
12
/**
Original file line number Diff line number Diff line change 7
7
use Illuminate \Support \Str ;
8
8
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
9
9
use Laravel \Horizon \MasterSupervisor ;
10
+ use Symfony \Component \Console \Attribute \AsCommand ;
10
11
12
+ #[AsCommand(name: 'horizon:continue ' )
11
13
class ContinueCommand extends Command
12
14
{
13
15
/**
Original file line number Diff line number Diff line change 6
6
use Illuminate \Support \Str ;
7
7
use Laravel \Horizon \Contracts \SupervisorRepository ;
8
8
use Laravel \Horizon \MasterSupervisor ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
11
+ #[AsCommand(name: 'horizon:continue-supervisor ' )
10
12
class ContinueSupervisorCommand extends Command
11
13
{
12
14
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Laravel \Horizon \Contracts \JobRepository ;
7
8
9
+ #[AsCommand(name: 'horizon:forget ' )
8
10
class ForgetFailedCommand extends Command
9
11
{
10
12
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
7
8
use Laravel \Horizon \MasterSupervisor ;
8
9
use Laravel \Horizon \ProvisioningPlan ;
9
10
11
+ #[AsCommand(name: 'horizon ' )
10
12
class HorizonCommand extends Command
11
13
{
12
14
/**
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \Command ;
6
6
use Illuminate \Support \ServiceProvider ;
7
7
use Illuminate \Support \Str ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
10
+ #[AsCommand(name: 'horizon:install ' )
9
11
class InstallCommand extends Command
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
7
8
9
+ #[AsCommand(name: 'horizon:list ' )
8
10
class ListCommand extends Command
9
11
{
10
12
/**
Original file line number Diff line number Diff line change 7
7
use Illuminate \Support \Str ;
8
8
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
9
9
use Laravel \Horizon \MasterSupervisor ;
10
+ use Symfony \Component \Console \Attribute \AsCommand ;
10
11
12
+ #[AsCommand(name: 'horizon:pause ' )
11
13
class PauseCommand extends Command
12
14
{
13
15
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Illuminate \Support \Str ;
7
8
use Laravel \Horizon \Contracts \SupervisorRepository ;
8
9
use Laravel \Horizon \MasterSupervisor ;
9
10
11
+ #[AsCommand(name: 'horizon:pause-supervisor ' )
10
12
class PauseSupervisorCommand extends Command
11
13
{
12
14
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
8
+ #[AsCommand(name: 'horizon:publish ' )
7
9
class PublishCommand extends Command
8
10
{
9
11
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Illuminate \Support \Str ;
7
8
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
8
9
use Laravel \Horizon \Contracts \ProcessRepository ;
9
10
use Laravel \Horizon \Contracts \SupervisorRepository ;
10
11
use Laravel \Horizon \MasterSupervisor ;
11
12
use Laravel \Horizon \ProcessInspector ;
12
13
14
+ #[AsCommand(name: 'horizon:purge ' )
13
15
class PurgeCommand extends Command
14
16
{
15
17
/**
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \Command ;
6
6
use Laravel \Horizon \Contracts \MetricsRepository ;
7
7
use Laravel \Horizon \Lock ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
10
+ #[AsCommand(name: 'horizon:snapshot ' )
9
11
class SnapshotCommand extends Command
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
7
8
9
+ #[AsCommand(name: 'horizon:status ' )
8
10
class StatusCommand extends Command
9
11
{
10
12
/**
Original file line number Diff line number Diff line change 6
6
use Illuminate \Console \Command ;
7
7
use Laravel \Horizon \SupervisorFactory ;
8
8
use Laravel \Horizon \SupervisorOptions ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
11
+ #[AsCommand(name: 'horizon:supervisor ' )
10
12
class SupervisorCommand extends Command
11
13
{
12
14
/**
Original file line number Diff line number Diff line change 4
4
5
5
use Illuminate \Console \Command ;
6
6
use Laravel \Horizon \Contracts \SupervisorRepository ;
7
+ use Symfony \Component \Console \Attribute \AsCommand ;
7
8
9
+ #[AsCommand(name: 'horizon:supervisors ' )
8
10
class SupervisorsCommand extends Command
9
11
{
10
12
/**
Original file line number Diff line number Diff line change 3
3
namespace Laravel \Horizon \Console ;
4
4
5
5
use Illuminate \Console \Command ;
6
+ use Symfony \Component \Console \Attribute \AsCommand ;
6
7
use Illuminate \Contracts \Cache \Factory as CacheFactory ;
7
8
use Illuminate \Support \Arr ;
8
9
use Illuminate \Support \InteractsWithTime ;
9
10
use Illuminate \Support \Str ;
10
11
use Laravel \Horizon \Contracts \MasterSupervisorRepository ;
11
12
use Laravel \Horizon \MasterSupervisor ;
12
13
14
+ #[AsCommand(name: 'horizon:terminate ' )
13
15
class TerminateCommand extends Command
14
16
{
15
17
use InteractsWithTime ;
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \Command ;
6
6
use Laravel \Horizon \MasterSupervisor ;
7
7
use Laravel \Horizon \ProvisioningPlan ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
10
+ #[AsCommand(name: 'horizon:timeout ' )
9
11
class TimeoutCommand extends Command
10
12
{
11
13
/**
You can’t perform that action at this time.
0 commit comments