| 1 | <?php |
||
| 12 | class RenderedMarkdownRenderer implements RendererInterface, LoggerAwareInterface |
||
| 13 | { |
||
| 14 | use LoggerAwareTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var RendererInterface |
||
| 18 | */ |
||
| 19 | public $renderer; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Parser |
||
| 23 | */ |
||
| 24 | public $markdown_parser; |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param RendererInterface $renderer RendererInterface instance |
||
| 29 | * @param Parser $markdown_parser Carsten Brandt's cebe/markdown parser |
||
| 30 | */ |
||
| 31 | public function __construct( RendererInterface $renderer, Parser $markdown_parser, LoggerInterface $logger = null ) |
||
| 37 | |||
| 38 | |||
| 39 | /** |
||
| 40 | * Returns parsed template output. |
||
| 41 | * |
||
| 42 | * @param string $template The template file |
||
| 43 | * @param array $context Associative template variables array |
||
| 44 | * |
||
| 45 | * @return string Template output |
||
| 46 | */ |
||
| 47 | public function __invoke( $template, array $context = array()) |
||
| 60 | |||
| 61 | |||
| 62 | } |
||
| 63 |