1 | <?php |
||
23 | final class TemplateRegistryExtension extends AbstractExtension |
||
24 | { |
||
25 | /** |
||
26 | * @var TemplateRegistryInterface |
||
27 | */ |
||
28 | private $globalTemplateRegistry; |
||
29 | |||
30 | /** |
||
31 | * @var ContainerInterface |
||
32 | */ |
||
33 | private $container; |
||
34 | |||
35 | public function __construct(TemplateRegistryInterface $globalTemplateRegistry, ContainerInterface $container) |
||
40 | |||
41 | public function getFunctions() |
||
51 | |||
52 | /** |
||
53 | * @param string $name |
||
54 | * @param string $adminCode |
||
55 | * |
||
56 | * @throws ServiceNotFoundException |
||
57 | * @throws ServiceCircularReferenceException |
||
58 | * |
||
59 | * @return null|string |
||
60 | */ |
||
61 | public function getAdminTemplate($name, $adminCode) |
||
65 | |||
66 | /** |
||
67 | * @deprecated Sinds 3.x, to be removed in 4.0. Use getGlobalTemplate instead. |
||
68 | * |
||
69 | * @param $name |
||
70 | * |
||
71 | * @return null|string |
||
72 | */ |
||
73 | public function getPoolTemplate($name) |
||
77 | |||
78 | /** |
||
79 | * @param string $name |
||
80 | * |
||
81 | * @return null|string |
||
82 | */ |
||
83 | public function getGlobalTemplate($name) |
||
87 | |||
88 | /** |
||
89 | * @param string $adminCode |
||
90 | * |
||
91 | * @throws ServiceNotFoundException |
||
92 | * @throws ServiceCircularReferenceException |
||
93 | * |
||
94 | * @return TemplateRegistryInterface |
||
95 | */ |
||
96 | private function getTemplateRegistry($adminCode) |
||
106 | } |
||
107 |