| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function createEndpoint(): callable |
||
| 38 | { |
||
| 39 | $route = $this; |
||
| 40 | |||
| 41 | return function (Request $request, Response $response) use ($route) { |
||
| 42 | $matches = $this->getMatches(); |
||
| 43 | |||
| 44 | return $this->callAction( |
||
| 45 | $matches['controller'], |
||
| 46 | $matches['action'], |
||
| 47 | $matches, |
||
| 48 | [Request::class => $request, Response::class => $response] |
||
| 49 | ); |
||
| 50 | }; |
||
| 51 | } |
||
| 52 | } |