1 | <?php |
||
19 | class FlashAlertsHelper extends Helper |
||
20 | { |
||
21 | /** |
||
22 | * @var EngineInterface |
||
23 | */ |
||
24 | private $templating; |
||
25 | |||
26 | /** |
||
27 | * @var AlertPublisher |
||
28 | */ |
||
29 | private $alertPublisher; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private $options = array(); |
||
35 | |||
36 | /** |
||
37 | * @param \Symfony\Component\Templating\EngineInterface $templating |
||
38 | * @param \Ras\Bundle\FlashAlertBundle\Model\AlertPublisher $alertPublisher |
||
39 | * @param array $options |
||
40 | */ |
||
41 | public function __construct(EngineInterface $templating, AlertPublisher $alertPublisher, array $options) |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function getName() |
||
55 | |||
56 | /** |
||
57 | * Returns the HTML for the flashAlerts |
||
58 | * |
||
59 | * @param array $options |
||
60 | * @return string A HTML string |
||
61 | */ |
||
62 | public function renderFlashAlerts(array $options = array()) |
||
71 | |||
72 | /** |
||
73 | * Merges user-supplied options from the view |
||
74 | * with base config values |
||
75 | * |
||
76 | * @param array $options |
||
77 | * @return array |
||
78 | */ |
||
79 | private function resolveOptions(array $options = array()) |
||
85 | } |