1 | <?php |
||
6 | class MakeControllerCommand extends AbstractMakeCommand |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $name = 'make:controller'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $description = 'Create a new Controller class and optional template'; |
||
17 | |||
18 | /** |
||
19 | * Get the console command options. |
||
20 | * |
||
21 | * @return array |
||
22 | */ |
||
23 | protected function getOptions() |
||
29 | } |
||
30 |
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.