correciton sur la configuration du mailer

This commit is contained in:
2020-09-28 14:33:18 +02:00
parent 51337ee42b
commit 9006dd3b38

View File

@@ -2,14 +2,17 @@
namespace App\Service; namespace App\Service;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class notificationService class notificationService
{ {
private $em; private $em;
protected $mailer; protected $mailer;
protected $twig; 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->mailer = $mailer;
$this->twig = $twig; $this->twig = $twig;