From 9006dd3b386ccfd0b6d5cba3b02985c5468d2dff Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Mon, 28 Sep 2020 14:33:18 +0200 Subject: [PATCH] correciton sur la configuration du mailer --- src/schedule-2.0/src/Service/notificationService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/schedule-2.0/src/Service/notificationService.php b/src/schedule-2.0/src/Service/notificationService.php index 1c754af..12e0688 100644 --- a/src/schedule-2.0/src/Service/notificationService.php +++ b/src/schedule-2.0/src/Service/notificationService.php @@ -2,14 +2,17 @@ namespace App\Service; use Doctrine\ORM\EntityManagerInterface; +use Symfony\Component\DependencyInjection\ContainerInterface; + class notificationService { private $em; protected $mailer; protected $twig; + private $container; - public function __construct(EntityManagerInterface $em, \Swift_Mailer $mailer, \Twig\Environment $twig) + public function __construct(EntityManagerInterface $em, \Swift_Mailer $mailer, \Twig\Environment $twig, ContainerInterface $container) { $this->mailer = $mailer; $this->twig = $twig;