EventSubscriber
class EventSubscriber implements EventSubscriberInterface
An event subscriber for bzion events
Methods
Constructor
Returns all the events that this subscriber handles, and which method handles each one
Called when a conversation event needs to be stored in the database
Send emails to a list of recipients
Details
at line line 51
__construct(Swift_Mailer $mailer, Twig_Environment $twig, string $from, string $siteTitle)
Constructor
You will probably not need to instantiate an object of this class, Symfony already does the hard work for us
at line line 65
static array
getSubscribedEvents()
Returns all the events that this subscriber handles, and which method handles each one
at line line 88
onNewMessage(NewMessageEvent $event)
Called every time a new message is sent
at line line 117
onNewNotification(NewNotificationEvent $event)
Called every time a new notification is sent
at line line 135
notify(Event $event, string $name)
Called when an event needs to notify a user
at line line 146
conversation(Event $event, string $name)
Called when a conversation event needs to be stored in the database
at line line 155
emailNotification(Notification $notification)
Notify the user about a notification by e-
at line line 179
void
sendEmails(string $subject, int[] $recipients, string $template, array $params = array())
Send emails to a list of recipients