Total Complexity | 10 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 6 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class TranslationExtension extends \Twig_Extension |
||
8 | { |
||
9 | use TwigTrait; |
||
10 | |||
11 | protected $request; |
||
12 | protected $defaultLocale; |
||
13 | protected $shortFunctions; |
||
14 | |||
15 | public function __construct($requestStack, $default, $container) |
||
20 | } |
||
21 | |||
22 | public function getName() |
||
23 | { |
||
24 | return 'sludio_helper.twig.translate_extension'; |
||
25 | } |
||
26 | |||
27 | public function getFilters() |
||
34 | } |
||
35 | |||
36 | public function getVar($type, $object, $original = false, $locale = null) |
||
54 |