private function distributeNotification(MailSenderInterface $mailer, $area)
 {
     if (sizeof($area['emails']) > 0) {
         $mailer->send(EdkTexts::NOTIFICATION_MAIL . '@@' . $area['locale'], $area['emails'], $area['id'], $area);
     }
 }
示例#2
0
 public function onAreaRequestApproved(AreaRequestApprovedEvent $event)
 {
     $request = $event->getAreaRequest();
     $this->mailSender->send(CoreTexts::AREA_REQUEST_APPROVED_MAIL, $request->getRequestor()->getEmail(), 'notification about area request \'' . $request->getName() . '\' approval sent to \'' . $request->getRequestor()->getEmail() . '\'', ['request' => $request, 'area' => $event->getArea()]);
 }
示例#3
0
 public function onRegistrationCompleted(RegistrationEvent $event)
 {
     $participant = $event->getParticipant();
     $this->mailSender->send(EdkTexts::REGISTRATION_MAIL, $participant->getEmail(), 'user \'' . $participant->getEmail() . '\'', ['participant' => $participant, 'slug' => $event->getSlug()]);
 }