1 | <?php |
||
7 | class FrameworkExtension extends \Twig_Extension |
||
8 | { |
||
9 | /** |
||
10 | * @var \Symfony\Component\DependencyInjection\ContainerInterface |
||
11 | */ |
||
12 | protected $container; |
||
13 | |||
14 | /** |
||
15 | * @param ContainerInterface $container |
||
16 | */ |
||
17 | 20 | public function __construct(ContainerInterface $container) |
|
21 | |||
22 | /** |
||
23 | * Get the registered functions |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 2 | public function getFunctions() |
|
40 | |||
41 | /** |
||
42 | * Check if a bundle exists |
||
43 | * |
||
44 | * @param string $bundle |
||
45 | * @return bool |
||
46 | */ |
||
47 | 9 | public function bundleExists($bundle) |
|
53 | |||
54 | /** |
||
55 | * Convert a given string into a string that will/can be used as a id for |
||
56 | * translations |
||
57 | * |
||
58 | * @param string $stringToConvert |
||
59 | * @return string |
||
60 | */ |
||
61 | 18 | public function convertToTranslation($stringToConvert) |
|
87 | } |
||
88 |