1 | <?php |
||
24 | final class TemplateRegistryExtension extends AbstractExtension |
||
25 | { |
||
26 | /** |
||
27 | * @var TemplateRegistryInterface |
||
28 | */ |
||
29 | private $globalTemplateRegistry; |
||
30 | |||
31 | /** |
||
32 | * @var ContainerInterface |
||
33 | */ |
||
34 | private $container; |
||
35 | |||
36 | public function __construct(TemplateRegistryInterface $globalTemplateRegistry, ContainerInterface $container) |
||
41 | |||
42 | public function getFunctions() |
||
52 | |||
53 | /** |
||
54 | * @param string $name |
||
55 | * @param string $adminCode |
||
56 | * |
||
57 | * @throws ServiceNotFoundException |
||
58 | * @throws ServiceCircularReferenceException |
||
59 | * |
||
60 | * @return null|string |
||
61 | */ |
||
62 | public function getAdminTemplate($name, $adminCode) |
||
68 | |||
69 | /** |
||
70 | * @deprecated Sinds 3.34, to be removed in 4.0. Use getGlobalTemplate instead. |
||
71 | * |
||
72 | * @param $name |
||
73 | * |
||
74 | * @return null|string |
||
75 | */ |
||
76 | public function getPoolTemplate($name) |
||
80 | |||
81 | /** |
||
82 | * @param string $name |
||
83 | * |
||
84 | * @return null|string |
||
85 | */ |
||
86 | public function getGlobalTemplate($name) |
||
90 | |||
91 | /** |
||
92 | * @param string $adminCode |
||
93 | * |
||
94 | * @throws ServiceNotFoundException |
||
95 | * @throws ServiceCircularReferenceException |
||
96 | * |
||
97 | * @return TemplateRegistryInterface |
||
98 | */ |
||
99 | private function getTemplateRegistry($adminCode) |
||
109 | |||
110 | /** |
||
111 | * @deprecated since 3.x, will be dropped in 4.0. Use TemplateRegistry services instead |
||
112 | * |
||
113 | * @param string $adminCode |
||
114 | * |
||
115 | * @throws ServiceNotFoundException |
||
116 | * @throws ServiceCircularReferenceException |
||
117 | * |
||
118 | * @return AdminInterface |
||
119 | */ |
||
120 | private function getAdmin($adminCode) |
||
129 | } |
||
130 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.