Commit 66e71ad0 by Damien Moulard

fix emails non envoyés à l'import

parent de82afab
# See https://symfony.com/doc/current/email/dev_environment.html # See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer: swiftmailer:
# send all emails to a specific address # send all emails to a specific address
delivery_addresses: ['julien.jorry@gmail.com'] delivery_addresses: ['dam.moulard@gmail.com']
...@@ -38,6 +38,7 @@ use Symfony\Component\HttpFoundation\Response; ...@@ -38,6 +38,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Core\Security;
use Symfony\Component\Translation\TranslatorInterface; use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class ImportController extends CRUDController class ImportController extends CRUDController
{ {
...@@ -55,8 +56,14 @@ class ImportController extends CRUDController ...@@ -55,8 +56,14 @@ class ImportController extends CRUDController
protected $userManager; protected $userManager;
protected $translator; protected $translator;
protected $tokenGenerator; protected $tokenGenerator;
protected $eventDispatcher;
public function __construct(EntityManagerInterface $em, Security $security, UserManagerInterface $userManager, TranslatorInterface $translator, TokenGeneratorInterface $tokenGenerator)
public function __construct(EntityManagerInterface $em,
Security $security,
UserManagerInterface $userManager,
TranslatorInterface $translator,
TokenGeneratorInterface $tokenGenerator,
EventDispatcherInterface $eventDispatcher)
{ {
$this->header = null; $this->header = null;
$this->warnings = array(); $this->warnings = array();
...@@ -69,6 +76,7 @@ class ImportController extends CRUDController ...@@ -69,6 +76,7 @@ class ImportController extends CRUDController
$this->userManager = $userManager; $this->userManager = $userManager;
$this->translator = $translator; $this->translator = $translator;
$this->tokenGenerator = $tokenGenerator; $this->tokenGenerator = $tokenGenerator;
$this->eventDispatcher = $eventDispatcher;
$this->siege = null; $this->siege = null;
$this->sendemail = false; $this->sendemail = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment