Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function __invoke(Query $query, callable $next = null) : QueryResponse |
||
37 | { |
||
38 | $handlerName = $this->queryTranslator->handlerName($query); |
||
39 | |||
40 | /** @var $handlerInstance QueryHandler */ |
||
41 | $handlerInstance = $this->handlerResolver->instantiate($handlerName); |
||
42 | |||
43 | return $handlerInstance($query); |
||
44 | } |
||
45 | } |
||
46 |