1 | <?php namespace Indatus\Dispatcher\Commands; |
||
21 | class Run extends Command |
||
22 | { |
||
23 | /** @var \Indatus\Dispatcher\Services\CommandService|null */ |
||
24 | private $commandService = null; |
||
25 | |||
26 | 3 | public function __construct(CommandService $commandService) |
|
32 | |||
33 | /** |
||
34 | * The console command name. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $name = 'scheduled:run'; |
||
39 | |||
40 | /** |
||
41 | * The console command description. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $description = 'Run scheduled commands'; |
||
46 | |||
47 | /** |
||
48 | * Get the console command options. |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 3 | protected function getOptions() |
|
58 | |||
59 | /** |
||
60 | * Execute the console command. |
||
61 | * |
||
62 | * @return mixed |
||
63 | */ |
||
64 | 1 | public function fire() |
|
79 | } |
||
80 |