1 | <?php |
||
7 | class PostMakeCommand extends Command |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * The console command name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name = 'post:make'; |
||
15 | |||
16 | /** |
||
17 | * The console command description. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description = 'Create new Post file'; |
||
22 | |||
23 | /** |
||
24 | * Create a new command instance. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function __construct(PostRepositoryInterface $post) |
||
33 | |||
34 | /** |
||
35 | * Execute the console command. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function fire() |
||
86 | |||
87 | /** |
||
88 | * Get the console command arguments. |
||
89 | * |
||
90 | * @return array |
||
91 | */ |
||
92 | protected function getArguments() |
||
96 | |||
97 | /** |
||
98 | * Get the console command options. |
||
99 | * |
||
100 | * @return array |
||
101 | */ |
||
102 | protected function getOptions() |
||
111 | } |
||
112 |
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.