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