1 | <?php |
||
12 | class ScriptExtension extends \Twig_Extension |
||
13 | { |
||
14 | protected $analyticsGenerator; |
||
15 | protected $messageGenerator; |
||
16 | protected $autopromoBannerGenerator; |
||
17 | |||
18 | /** |
||
19 | * @param AnalyticsScriptGenerator $analyticsScriptGenerator |
||
20 | * @param MessageScriptGenerator $messageScriptGenerator |
||
21 | * @param AutopromoBannerScriptGenerator $autopromoBannerScriptGenerator |
||
22 | */ |
||
23 | public function __construct(AnalyticsScriptGenerator $analyticsScriptGenerator, MessageScriptGenerator $messageScriptGenerator, AutopromoBannerScriptGenerator $autopromoBannerScriptGenerator) |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function generateScripts() |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function generateAutopromoBannerScript() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getFunctions() |
||
59 | } |
||
60 |