1 | <?php |
||
11 | class CommandBusHandleCommand extends InteractiveFormContainerAwareCommand |
||
12 | { |
||
13 | const SUCCESS_CODE = 0; |
||
14 | const ERROR_CODE = 1; |
||
15 | |||
16 | /** @var string */ |
||
17 | private $alias; |
||
18 | |||
19 | /** @var string */ |
||
20 | private $formType; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $legacyFormTypeAlias; |
||
24 | |||
25 | /** |
||
26 | * @param string $alias |
||
27 | * @param string $formType |
||
28 | * @param string $legacyFormTypeAlias |
||
29 | */ |
||
30 | public function __construct($alias, $formType, $legacyFormTypeAlias) |
||
38 | |||
39 | /** {@inheritdoc} */ |
||
40 | public function formType() |
||
44 | |||
45 | /** {@inheritdoc} */ |
||
46 | protected function configure() |
||
52 | |||
53 | /** {@inheritdoc} */ |
||
54 | protected function execute(InputInterface $input, OutputInterface $output) |
||
64 | |||
65 | private function handleException(OutputInterface $output, \Exception $exception) |
||
77 | |||
78 | private function handleSuccess(OutputInterface $output, $commandToLunch) |
||
84 | |||
85 | private function getArgumentsString($command) |
||
95 | } |
||
96 |