Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
47 | public function __invoke( $template, array $context = array()) |
||
48 | { |
||
49 | $this->logger->info("Render template", [ |
||
50 | 'template' => $template |
||
51 | ]); |
||
52 | |||
53 | $renderer = $this->renderer; |
||
54 | |||
55 | $markdown_content = $renderer($template, $context); |
||
56 | $markdown_parser = $this->markdown_parser; |
||
57 | |||
58 | return $markdown_parser->parse( $markdown_content ); |
||
59 | } |
||
60 | |||
63 |