1 | <?php |
||
11 | abstract class AbstractConfiguredCommand extends AbstractCommand |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | protected function configure() |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
39 | |||
40 | /** |
||
41 | * @param InputInterface $input |
||
42 | * @param OutputInterface $output |
||
43 | * @param Configuration $configuration |
||
44 | * @return int |
||
45 | */ |
||
46 | abstract protected function executeConfigured(InputInterface $input, OutputInterface $output, Configuration $configuration): int; |
||
47 | |||
48 | /** |
||
49 | * Tries to read in the archive configuration either from the default path or a user provided one. |
||
50 | * |
||
51 | * @param InputInterface $input |
||
52 | * @return Configuration |
||
53 | */ |
||
54 | protected function getConfiguration(InputInterface $input) |
||
70 | } |
||
71 |