| 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 | 60 | protected function getArguments() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get template contents. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 2 | protected function getTemplateContents() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 2 | private function getFileName() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * Get the destination file path. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 2 | protected function getDestinationFilePath() |
|
| 76 | } |
||
| 77 |