Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 3 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
23 | { |
||
24 | 3 | $template = file_get_contents(dirname(__DIR__).'/templates/documentation.phtml'); |
|
25 | |||
26 | 3 | $template = str_replace([ |
|
27 | 3 | '{__TITLE__}', |
|
28 | '{__ASSETS_PATH__}', |
||
29 | '{__API_SPEC_URL__}', |
||
30 | ], [ |
||
31 | 3 | $this->config['title'], |
|
32 | 3 | $this->config['routes']['assets'], |
|
33 | 3 | $this->config['routes']['specification'], |
|
34 | 3 | ], $template); |
|
35 | |||
36 | 3 | return new HtmlResponse($template); |
|
37 | } |
||
38 | } |
||
39 |