1 | <?php |
||
8 | class ComponentMakeCommand extends GeneratorCommand |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'make:component'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Create a new component class(ScoAdmin)'; |
||
23 | |||
24 | /** |
||
25 | * The type of class being generated. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $type = 'Component'; |
||
30 | |||
31 | /** |
||
32 | * Execute the console command. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function handle() |
||
46 | |||
47 | /** |
||
48 | * Create a new permission observer for the component |
||
49 | */ |
||
50 | protected function createObserver() |
||
56 | |||
57 | /** |
||
58 | * Get the stub file for the generator. |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function getStub() |
||
66 | |||
67 | /** |
||
68 | * Build the class with the given name. |
||
69 | * |
||
70 | * @param string $name |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function buildClass($name) |
||
88 | |||
89 | /** |
||
90 | * Get the default namespace for the class. |
||
91 | * |
||
92 | * @param string $rootNamespace |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function getDefaultNamespace($rootNamespace) |
||
100 | |||
101 | /** |
||
102 | * Get the console command options. |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | protected function getOptions() |
||
119 | } |
||
120 |