1 | <?php |
||
12 | class AppExtension extends \Twig_Extension |
||
13 | { |
||
14 | /** |
||
15 | * @var RegistryInterface |
||
16 | */ |
||
17 | protected $doctrine; |
||
18 | |||
19 | /** |
||
20 | * @param RegistryInterface $doctrine |
||
21 | */ |
||
22 | public function __construct(RegistryInterface $doctrine) |
||
26 | |||
27 | /** |
||
28 | * @return array |
||
29 | */ |
||
30 | public function getFunctions() |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getTime($start, $finish) |
||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getName() |
||
60 | } |
||
61 |