1 | <?php |
||
25 | class TwigRendererAdapter implements RendererAdapterInterface |
||
26 | { |
||
27 | private $adapter; |
||
28 | /** @var ConfigInterface */ |
||
29 | private $config; |
||
30 | /** @var string */ |
||
31 | private $templateViewPath; |
||
32 | /** @var string */ |
||
33 | private $templateResourcePath; |
||
34 | |||
35 | /** |
||
36 | * RendererAdapterInterface constructor. |
||
37 | * |
||
38 | * @param ConfigInterface $templateConfig |
||
39 | * @param string $templatePath |
||
40 | */ |
||
41 | public function __construct(ConfigInterface $templateConfig, $templatePath) |
||
51 | |||
52 | /** |
||
53 | * Renders the template for the output. |
||
54 | * |
||
55 | * @param string $template |
||
56 | * @param array $parameters |
||
57 | * |
||
58 | * @throws InvalidArgumentException |
||
59 | * |
||
60 | * @return StreamInterface |
||
61 | */ |
||
62 | public function render($template, $parameters = []) |
||
80 | } |
||
81 |