1 | <?php |
||
11 | class FrontRender |
||
12 | { |
||
13 | /** |
||
14 | * @var EngineInterface $twig |
||
15 | */ |
||
16 | protected $engine; |
||
17 | |||
18 | /** |
||
19 | * @var string $frontPath |
||
20 | */ |
||
21 | protected $frontPath; |
||
22 | |||
23 | /** |
||
24 | * @var EventDispatcherInterface $dispatcher |
||
25 | */ |
||
26 | protected $dispatcher; |
||
27 | |||
28 | /** |
||
29 | * @var array $parameters |
||
30 | */ |
||
31 | protected $parameters = []; |
||
32 | |||
33 | /** |
||
34 | * @param EngineInterface $engine |
||
35 | * @param EventDispatcherInterface $dispatcher |
||
36 | * @param string $frontPath |
||
37 | */ |
||
38 | 8 | public function __construct(EngineInterface $engine, EventDispatcherInterface $dispatcher, $frontPath) |
|
44 | |||
45 | /** |
||
46 | * Set Parameters |
||
47 | * |
||
48 | * @param array $parameters |
||
49 | * |
||
50 | * @return $this |
||
51 | */ |
||
52 | 4 | public function setParameters($parameters) |
|
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | 8 | public function render() |
|
74 | } |
||
75 |