| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next = null) |
||
| 25 | { |
||
| 26 | $markdownCmsConfig = $this->getMarkdownCmsConfig(); |
||
| 27 | $config = $markdownCmsConfig['content']['content_types']['blogEntry']['all']; |
||
| 28 | $entries = []; |
||
| 29 | |||
| 30 | $entryParser = $this->getEntryParser(); |
||
| 31 | |||
| 32 | foreach ($config as $id) { |
||
| 33 | $entries[] = $entryParser($id); |
||
| 34 | } |
||
| 35 | |||
| 36 | return new HtmlResponse($this->getTemplateRenderer()->render('app::blog-overwiew.twig', ['entries' => $entries])); |
||
| 37 | } |
||
| 38 | } |