1 | <?php |
||
25 | class ContainerTwigExtension extends AbstractTwigExtension { |
||
26 | |||
27 | use ContainerTrait; |
||
28 | |||
29 | /** |
||
30 | * Service name. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const SERVICE_NAME = "wbw.core.twig.extension.container"; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * |
||
39 | * @param Container $container The container. |
||
40 | */ |
||
41 | public function __construct(Container $container) { |
||
44 | |||
45 | /** |
||
46 | * Get the Twig filters. |
||
47 | * |
||
48 | * @return TwigFilter[] Returns the Twig filters. |
||
49 | */ |
||
50 | public function getFilters() { |
||
53 | |||
54 | /** |
||
55 | * Get the Twig functions. |
||
56 | * |
||
57 | * @return TwigFunction[] Returns the Twig functions. |
||
58 | */ |
||
59 | public function getFunctions() { |
||
64 | |||
65 | /** |
||
66 | * Get a container parameter. |
||
67 | * |
||
68 | * @param string $name The name. |
||
69 | * @return mixed|null Returns the container parameter in case of success, null otherwise. |
||
70 | */ |
||
71 | public function getContainerParameterFunction($name) { |
||
74 | } |
||
75 |