1 | <?php |
||
30 | abstract class CloudCommand extends ContainerAwareCommand |
||
31 | { |
||
32 | /** |
||
33 | * {@inheritDoc} |
||
34 | */ |
||
35 | 85 | protected function configure() |
|
44 | |||
45 | /** |
||
46 | * @return \Xabbuh\PandaClient\Api\CloudManager |
||
47 | */ |
||
48 | 67 | protected function getCloudManager() |
|
52 | |||
53 | /** |
||
54 | * Get the cloud to work on. |
||
55 | * |
||
56 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
57 | * |
||
58 | * @return \Xabbuh\PandaClient\Api\Cloud |
||
59 | */ |
||
60 | 67 | protected function getCloud(InputInterface $input) |
|
68 | |||
69 | /** |
||
70 | * Executes the actual command (to be implemented by subclasses, will be called automatically). |
||
71 | * |
||
72 | * @param InputInterface $input |
||
73 | * @param OutputInterface $output |
||
74 | */ |
||
75 | abstract protected function doExecuteCommand(InputInterface $input, OutputInterface $output); |
||
76 | |||
77 | /** |
||
78 | * {@inheritDoc} |
||
79 | */ |
||
80 | 69 | protected function execute(InputInterface $input, OutputInterface $output) |
|
88 | } |
||
89 |