<?php
namespace App\Event\Contact;
use App\Entity\Inquiry\InquiryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Psr\Log\LoggerInterface;
class Subscriber implements EventSubscriberInterface
{
protected $logger;
public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}
public static function getSubscribedEvents() {
return [
PostSendEvent::NAME => "onPostSend"
];
}
public function onPostSend(PostSendEvent $Event) {
// 送ったToのログはMailServiceで書き込まれている
// ... Do samething
}
}