1 | <?php |
||
10 | class CrudControllerMakeCommand extends GeneratorCommand |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'make:crud:controller'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $description = 'Create a new crud friendly controller class'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $type = 'Controller'; |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function getStub() |
||
34 | |||
35 | /** |
||
36 | * @param string $rootNamespace |
||
37 | * @return string |
||
38 | */ |
||
39 | protected function getDefaultNamespace($rootNamespace) |
||
43 | |||
44 | /** |
||
45 | * Get and parse the model name. |
||
46 | * |
||
47 | * @param void |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function getModelName() |
||
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | */ |
||
71 | protected function getArguments() |
||
77 | |||
78 | /** |
||
79 | * @param string $name |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function buildClass($name) |
||
96 | } |
||
97 |