Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class TwigView extends AbstractView |
||
14 | { |
||
15 | /** |
||
16 | * @var TemplateWrapper |
||
17 | */ |
||
18 | protected $template; |
||
19 | |||
20 | public function __construct(TemplateWrapper $template) |
||
21 | { |
||
22 | $this->template = $template; |
||
23 | } |
||
24 | |||
25 | public static function configuration($loader) |
||
26 | { |
||
27 | return [ |
||
28 | Environment::class => C::provideParameter([ |
||
29 | C::alias(Environment::class, 'loader'), |
||
30 | C::alias(Environment::class, 'options'), |
||
31 | ]), |
||
32 | C::join(Environment::class, 'loader') => $loader, |
||
33 | ]; |
||
34 | } |
||
35 | |||
36 | public function render(array $data = []): ResponseInterface |
||
42 | } |
||
43 | } |
||
44 |