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