1 | <?php |
||
8 | class ActionMakeCommand extends GeneratorCommand |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'make:action'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Create a new action class'; |
||
24 | |||
25 | /** |
||
26 | * The type of class being generated. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $type = 'Action'; |
||
31 | |||
32 | /** |
||
33 | * Get the stub file for the generator. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | protected function getStub() |
||
43 | |||
44 | /** |
||
45 | * Get the default namespace for the class. |
||
46 | * |
||
47 | * @param string $rootNamespace |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | protected function getDefaultNamespace($rootNamespace) |
||
55 | |||
56 | /** |
||
57 | * Build the class with the given name. |
||
58 | * Remove the base controller import if we are already in base namespace. |
||
59 | * |
||
60 | * @param string $name |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function buildClass($name) |
||
72 | |||
73 | /** |
||
74 | * Get the console command options. |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | protected function getOptions() |
||
82 | } |
||
83 |