1 | <?php |
||
6 | class MakeFormCommand extends MakeCommand |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $name = 'make:form'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $description = 'Create a new Form class and optional template'; |
||
17 | |||
18 | protected function writeFile($target, $class) |
||
37 | |||
38 | /** |
||
39 | * @param string $content |
||
40 | * @param string $formClass |
||
41 | * @return string |
||
42 | */ |
||
43 | protected function addFormMethodToController($content, $formClass) |
||
54 | |||
55 | /** |
||
56 | * @param string $content |
||
57 | * @param string $formClass |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function addAllowedActionsToController($content, $formClass) |
||
70 | |||
71 | /** |
||
72 | * @param $controller |
||
73 | * @return bool|string |
||
74 | */ |
||
75 | protected function findControllerFilePath($controller) |
||
88 | |||
89 | protected function getFormMethodStub($formClass) |
||
97 | |||
98 | /** |
||
99 | * @return array |
||
100 | */ |
||
101 | protected function getOptions() |
||
108 | } |
||
109 |
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.