1 | <?php |
||
21 | final class TemplateRegistryExtension extends AbstractExtension |
||
22 | { |
||
23 | /** |
||
24 | * @var TemplateRegistryInterface |
||
25 | */ |
||
26 | private $globalTemplateRegistry; |
||
27 | |||
28 | /** |
||
29 | * @var ContainerInterface |
||
30 | */ |
||
31 | private $container; |
||
32 | |||
33 | public function __construct(TemplateRegistryInterface $globalTemplateRegistry, ContainerInterface $container) |
||
38 | |||
39 | public function getFunctions() |
||
49 | |||
50 | /** |
||
51 | * @param string $name |
||
52 | * @param string $adminCode |
||
53 | * |
||
54 | * @throws ServiceNotFoundException |
||
55 | * @throws ServiceCircularReferenceException |
||
56 | * |
||
57 | * @return null|string |
||
58 | */ |
||
59 | public function getAdminTemplate($name, $adminCode) |
||
63 | |||
64 | /** |
||
65 | * @deprecated Sinds 3.x, to be removed in 4.0. Use getGlobalTemplate instead. |
||
66 | * |
||
67 | * @param $name |
||
68 | * |
||
69 | * @return null|string |
||
70 | */ |
||
71 | public function getPoolTemplate($name) |
||
75 | |||
76 | /** |
||
77 | * @param string $name |
||
78 | * |
||
79 | * @return null|string |
||
80 | */ |
||
81 | public function getGlobalTemplate($name) |
||
85 | |||
86 | /** |
||
87 | * @param string $adminCode |
||
88 | * |
||
89 | * @throws ServiceNotFoundException |
||
90 | * @throws ServiceCircularReferenceException |
||
91 | * |
||
92 | * @return TemplateRegistryInterface |
||
93 | */ |
||
94 | private function getTemplateRegistry($adminCode) |
||
104 | } |
||
105 |