Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | protected function getDelegate() : RequestHandlerInterface |
||
15 | { |
||
16 | return new class implements RequestHandlerInterface { |
||
17 | |||
18 | /** |
||
19 | * Dispatch the next available middleware and return the response. |
||
20 | * |
||
21 | * @param ServerRequestInterface $request |
||
22 | * |
||
23 | * @return ResponseInterface |
||
24 | */ |
||
25 | public function handle(ServerRequestInterface $request):ResponseInterface |
||
26 | { |
||
27 | return new TextResponse('foobar'); |
||
28 | } |
||
29 | }; |
||
30 | } |
||
31 | } |
||
32 |