1 | <?php |
||
17 | class RenderersRepository extends Repository |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $default; |
||
23 | |||
24 | /** |
||
25 | * @var Container |
||
26 | */ |
||
27 | private $container; |
||
28 | |||
29 | /** |
||
30 | * RenderersRepository constructor. |
||
31 | * @param Container $container |
||
32 | * @param array $items |
||
33 | * @throws \InvalidArgumentException |
||
34 | */ |
||
35 | public function __construct(Container $container, array $items = []) |
||
42 | |||
43 | /** |
||
44 | * @param string $name |
||
45 | * @return string |
||
46 | * @throws \InvalidArgumentException |
||
47 | */ |
||
48 | private function getRendererClass(string $name): string |
||
58 | |||
59 | /** |
||
60 | * @param string|null $name |
||
61 | * @return ContentRenderInterface |
||
62 | * @throws \InvalidArgumentException |
||
63 | */ |
||
64 | public function getRenderer(string $name = null): ContentRenderInterface |
||
70 | |||
71 | /** |
||
72 | * @return ContentRenderInterface |
||
73 | */ |
||
74 | public function getDefaultRenderer(): ContentRenderInterface |
||
78 | } |