1 | <?php |
||
10 | class RouteProviderMakeCommand extends GeneratorCommand |
||
11 | { |
||
12 | use ModuleCommandTrait; |
||
13 | |||
14 | protected $argumentName = 'module'; |
||
15 | |||
16 | /** |
||
17 | * The command name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name = 'module:route-provider'; |
||
22 | |||
23 | /** |
||
24 | * The command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Create a new route service provider for the specified module.'; |
||
29 | |||
30 | /** |
||
31 | * The command arguments. |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 91 | protected function getArguments() |
|
41 | |||
42 | /** |
||
43 | * Get template contents. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 3 | protected function getTemplateContents() |
|
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | 3 | private function getFileName() |
|
67 | |||
68 | /** |
||
69 | * Get the destination file path. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | 3 | protected function getDestinationFilePath() |
|
81 | |||
82 | /** |
||
83 | * @return mixed |
||
84 | */ |
||
85 | 3 | protected function getRoutesPath() |
|
89 | |||
90 | 3 | public function getDefaultNamespace() : string |
|
94 | } |
||
95 |