| 1 | <?php |
||
| 8 | class NotificationSubscriber implements EventSubscriberInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array |
||
| 12 | */ |
||
| 13 | protected $notifications = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return array |
||
| 17 | */ |
||
| 18 | 1 | public static function getSubscribedEvents() |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param NotificationEvent $event |
||
| 27 | */ |
||
| 28 | 1 | public function notify(NotificationEvent $event) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 1 | public function getNotifications() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * |
||
| 43 | */ |
||
| 44 | 1 | public function clearNotifications() |
|
| 48 | } |
||
| 49 |