1 | <?php |
||
18 | class Renderer |
||
19 | { |
||
20 | /** |
||
21 | * @var ViewInterface |
||
22 | */ |
||
23 | private $view; |
||
24 | |||
25 | /** |
||
26 | * @param array $data The constructor dependencies. |
||
27 | */ |
||
28 | public function __construct(array $data) |
||
32 | |||
33 | /** |
||
34 | * @param Response $response The HTTP response. |
||
35 | * @param string $templateIdent The template identifier to load and render. |
||
36 | * @param mixed $context The view controller / context. |
||
37 | * @return Response |
||
38 | */ |
||
39 | public function render(Response $response, string $templateIdent, $context = null): Response |
||
45 | |||
46 | /** |
||
47 | * @param ViewInterface $view The view instance to use. |
||
48 | * @return void |
||
49 | */ |
||
50 | private function setView(ViewInterface $view): void |
||
54 | } |
||
55 |