<?php
namespace App\Event\Contact\Data\Send;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class EventSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
'contact_data_send.pre_persist' => 'onPrePersist',
'contact_data_send.post_persist' => 'onPostPersist',
'contact_data_send.post_mail_send' => 'onPostMailSend'
];
}
public function onPrePersist(PrePersistEvent $event)
{
// $data = $event->getData();
// $form = $event->getForm();
}
public function onPostPersist(PostPersistEvent $event)
{
// $data = $event->getData();
// $form = $event->getForm();
}
public function onPostMailSend(PostMailSendEvent $event)
{
// $data = $event->getData();
// $form = $event->getForm();
}
}