1 | <?php |
||
8 | class RendererFactory extends DynamicFactory |
||
9 | { |
||
10 | protected $templateDirectory; |
||
11 | protected $rendererConfiguration; |
||
12 | protected $extensions = []; |
||
13 | |||
14 | 2 | public function __construct(string $templateDirectory, ?string $rendererConfiguration = 'twig') |
|
21 | |||
22 | 1 | public static function make(string $templateDirectory, ?string $renderer = 'twig'): RendererFactory |
|
26 | |||
27 | 1 | public function addExtension(Extension $extension) |
|
31 | |||
32 | 2 | public function create(): ?Renderer |
|
46 | |||
47 | 2 | protected function loadExtensions(Renderer $renderer) |
|
53 | |||
54 | private function setTwigRule(): void |
||
64 | } |
||
65 |