Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
44 | { |
||
45 | $pathinfo = $request->getUri()->getPath(); |
||
46 | $basePath = $this->routingBasePath; |
||
47 | $parameters = $this->matcher->match(str_replace('//', '/', '/'.str_replace($basePath, '', $pathinfo))); |
||
48 | $request = $request->withAttribute('route', $parameters); |
||
49 | return $handler->handle($request); |
||
50 | } |
||
52 |