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