1 | <?php |
||
9 | class GenerateRouteProviderCommand extends GeneratorCommand |
||
10 | { |
||
11 | use ModuleCommandTrait; |
||
12 | |||
13 | protected $argumentName = 'module'; |
||
14 | /** |
||
15 | * The command name. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $name = 'module:route-provider'; |
||
20 | |||
21 | /** |
||
22 | * The command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Generate a new route service provider for the specified module.'; |
||
27 | |||
28 | /** |
||
29 | * The command arguments. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | 16 | protected function getArguments() |
|
39 | |||
40 | /** |
||
41 | * Get template contents. |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 2 | protected function getTemplateContents() |
|
59 | |||
60 | /** |
||
61 | * Get the destination file path. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 2 | protected function getDestinationFilePath() |
|
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 2 | private function getFileName() |
|
81 | } |
||
82 |