1 | <?php |
||
10 | class ShariffExtension extends \Twig_Extension implements \Twig_Extension_GlobalsInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ShariffConfig |
||
14 | */ |
||
15 | protected $shariffConfig; |
||
16 | |||
17 | /** |
||
18 | * @param ShariffConfig $shariffConfig |
||
19 | */ |
||
20 | public function __construct(ShariffConfig $shariffConfig) |
||
24 | |||
25 | /** |
||
26 | * @return array |
||
27 | */ |
||
28 | public function getGlobals() |
||
32 | |||
33 | /** |
||
34 | * Returns the name of the extension. |
||
35 | * |
||
36 | * @return string The extension name |
||
37 | */ |
||
38 | public function getName() |
||
42 | } |
||
43 |