<?php
namespace Aqarmap\Bundle\NotificationBundle\EventListener;
use Aqarmap\Bundle\NotificationBundle\Events\NotificationSent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class NotificationSubscriber implements EventSubscriberInterface
{
/**
* Returns an array of event names this subscriber wants to listen to.
*
* @return array
*/
public static function getSubScribedEvents()
{
return [
'notification.sent' => 'notificationSent',
];
}
/**
* When notification sent.
*/
public function notificationSent(NotificationSent $notification): void
{
// you may hook here
}
}