correciton sur la configuration du mailer
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user