| 1 | <?php |
||
| 10 | class ConfigMakeCommand extends GeneratorCommand |
||
| 11 | { |
||
| 12 | use ConsoleMakeModuleCommand; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The console command name. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $name = 'make:config'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The console command description. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $description = 'Create a new config file'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The type of class being generated. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $type = 'Config'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the stub file for the generator. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | protected function getStub() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the destination class path. |
||
| 47 | * |
||
| 48 | * @param string $name |
||
| 49 | * |
||
| 50 | * @throws \Exception |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | protected function getPath($name) |
||
| 64 | } |
||
| 65 |