1 | <?php |
||
6 | class ScrapeUpcomingReleasesCommand extends Command { |
||
|
|||
7 | |||
8 | /** |
||
9 | * The console command name. |
||
10 | * |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $name = 'scrape:releases'; |
||
14 | |||
15 | /** |
||
16 | * The console command description. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $description = 'Scrape upcoming relases.'; |
||
21 | |||
22 | /** |
||
23 | * Execute the console command. |
||
24 | * |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function fire() { |
||
30 | |||
31 | /** |
||
32 | * Get the console command arguments. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 9 | protected function getArguments() { |
|
40 | |||
41 | /** |
||
42 | * Get the console command options. |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 9 | protected function getOptions() { |
|
50 | |||
51 | /** |
||
52 | * User to run the command as |
||
53 | * @return string Defaults to false to run as default user |
||
54 | */ |
||
55 | public function user() { |
||
58 | |||
59 | /** |
||
60 | * Environment(s) under which the given command should run |
||
61 | * Defaults to '*' for all environments |
||
62 | * @return string|array |
||
63 | */ |
||
64 | public function environment() { |
||
67 | } |
||
68 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.