Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
36 | public function execute(InputInterface $input, OutputInterface $output) |
||
37 | { |
||
38 | $listenerClass = $input->getArgument('listener'); |
||
39 | |||
40 | if (!class_exists($listenerClass)) { |
||
|
|||
41 | throw new XerviceException('Listener not found ' . $listenerClass); |
||
42 | } |
||
43 | |||
44 | $listener = new $listenerClass(); |
||
45 | $this->getFacade()->consumeQueries($listener); |
||
46 | } |
||
47 | } |