Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php namespace Comodojo\Foundation\Console; |
||
24 | static public function listen(ConsoleCommandEvent $event) { |
||
|
|||
25 | |||
26 | $output = $event->getOutput(); |
||
27 | $command = $event->getCommand(); |
||
28 | $application = $command->getApplication(); |
||
29 | |||
30 | if ( $command instanceof AbstractCommand ) { |
||
31 | |||
32 | $logger = new ConsoleLogger($output); |
||
33 | $command->setLogger($logger); |
||
34 | |||
35 | $command->setStartTime(); |
||
36 | |||
37 | $output->writeln([ |
||
38 | '', |
||
39 | $application->getVersion(), |
||
40 | '-----------------------------', |
||
41 | '' |
||
42 | ]); |
||
43 | |||
44 | } |
||
45 | |||
46 | } |
||
47 | |||
49 |