Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class FlashExtension extends \Twig_Extension |
||
9 | { |
||
10 | use TwigTrait; |
||
11 | |||
12 | private $publisher; |
||
13 | |||
14 | /** |
||
15 | * @var FlashAlertsHelper |
||
16 | */ |
||
17 | private $helper; |
||
18 | |||
19 | public function __construct($shortFunctions, $publisher, $helper) |
||
20 | { |
||
21 | $this->shortFunctions = $shortFunctions; |
||
22 | $this->publisher = $publisher; |
||
23 | $this->helper = $helper; |
||
24 | } |
||
25 | |||
26 | public function getAlertPublisher() |
||
27 | { |
||
28 | return $this->publisher; |
||
29 | } |
||
30 | |||
31 | public function renderFlashAlerts(array $options = []) |
||
34 | } |
||
35 | |||
36 | public function getFunctions() |
||
52 | } |
||
53 | } |
||
54 |