1 | <?php |
||
6 | class MakeFormCommand extends AbstractMakeCommand |
||
|
|||
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 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | protected function addFormMethodToController($content, $formClass) |
||
56 | |||
57 | /** |
||
58 | * @param string $content |
||
59 | * @param string $formClass |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | protected function addAllowedActionsToController($content, $formClass) |
||
72 | |||
73 | /** |
||
74 | * @param $controller |
||
75 | * |
||
76 | * @return bool|string |
||
77 | */ |
||
78 | protected function findControllerFilePath($controller) |
||
92 | |||
93 | protected function getFormMethodStub($formClass) |
||
101 | |||
102 | /** |
||
103 | * @return array |
||
104 | */ |
||
105 | protected function getOptions() |
||
113 | } |
||
114 |
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.