1 | <?php |
||
13 | abstract class AbstractCommand extends Command |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 1 | protected function configure() |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
38 | |||
39 | /** |
||
40 | * @param InputInterface $input |
||
41 | * |
||
42 | * @return Config |
||
43 | */ |
||
44 | 2 | private function createConfig(InputInterface $input) |
|
52 | |||
53 | /** |
||
54 | * @param InputInterface $input |
||
55 | * @param OutputInterface $output |
||
56 | * |
||
57 | * @return Processor |
||
58 | */ |
||
59 | 2 | private function createProcessor(InputInterface $input, OutputInterface $output) |
|
63 | |||
64 | /** |
||
65 | * @param Processor $processor |
||
66 | * @param Config $config |
||
67 | */ |
||
68 | abstract protected function doExecute(Processor $processor, Config $config); |
||
69 | } |
||
70 |