Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Application extends \Symfony\Component\Console\Application |
||
13 | { |
||
14 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
15 | { |
||
16 | if (null === $output) { |
||
17 | $styles = array(); |
||
18 | $styles['failure'] = new OutputFormatterStyle('red'); |
||
19 | $formatter = new OutputFormatter(false, $styles); |
||
20 | $output = new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, null, $formatter); |
||
21 | } |
||
22 | return parent::run($input, $output); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public function doRun(InputInterface $input, OutputInterface $output) |
||
29 | { |
||
30 | $this->registerCommands(); |
||
31 | return parent::doRun($input, $output); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Initializes all the commands. |
||
36 | */ |
||
37 | private function registerCommands() |
||
40 | } |
||
41 | } |
||
42 |