1 | <?php |
||
16 | class InitCommand extends Command |
||
17 | { |
||
18 | const COMMAND_NAME = 'init'; |
||
19 | |||
20 | /** |
||
21 | * Configure command. |
||
22 | */ |
||
23 | 5 | protected function configure() |
|
24 | { |
||
25 | $this |
||
26 | 5 | ->setName(self::COMMAND_NAME) |
|
27 | 5 | ->setDescription("Initialize empty config file.") |
|
28 | 5 | ->addArgument( |
|
29 | 5 | self::ARG_CONFIG_PATH, |
|
30 | 5 | InputArgument::OPTIONAL, |
|
31 | 5 | 'Path to config file. Default ' . $this->getDefaultConfiguration(), |
|
32 | 5 | $this->getDefaultConfiguration() |
|
33 | ); |
||
34 | 5 | } |
|
35 | |||
36 | /** |
||
37 | * @param InputInterface $input |
||
38 | * @param OutputInterface $output |
||
39 | * |
||
40 | * @throws \RuntimeException |
||
41 | * |
||
42 | * @return int|null|void |
||
43 | */ |
||
44 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
68 | } |
||
69 |