1 | <?php |
||
9 | class RouteProviderMakeCommand extends GeneratorCommand |
||
10 | { |
||
11 | use ModuleCommandTrait; |
||
12 | |||
13 | protected $argumentName = 'module'; |
||
14 | |||
15 | /** |
||
16 | * The command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'module:route-provider'; |
||
21 | |||
22 | /** |
||
23 | * The command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Create a new route service provider for the specified module.'; |
||
28 | |||
29 | /** |
||
30 | * The command arguments. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | 72 | protected function getArguments() |
|
40 | |||
41 | /** |
||
42 | * Get template contents. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 2 | protected function getTemplateContents() |
|
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 2 | private function getFileName() |
|
63 | |||
64 | /** |
||
65 | * Get the destination file path. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 2 | protected function getDestinationFilePath() |
|
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | 2 | protected function getRoutesPath() |
|
85 | } |
||
86 |