Conditions | 2 |
Paths | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
30 | { |
||
31 | $params = array_merge([$request, $handler], $this->factory->createInstances($request, $this->getHandlerParams())); |
||
32 | $response = (new Injector($this->container))->invoke($this->callback, $params); |
||
33 | return $response instanceof MiddlewareInterface ? $response->process($request, $handler) : $response; |
||
34 | } |
||
41 |