mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
sf4 resolve errors and depreciations
This commit is contained in:
@@ -19,6 +19,7 @@ namespace Chill\MainBundle\Notification;
|
||||
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\Mailer\MailerInterface;
|
||||
use Symfony\Component\Routing\RouterInterface;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
|
||||
@@ -75,10 +76,10 @@ class Mailer
|
||||
public function __construct(
|
||||
LoggerInterface $logger,
|
||||
\Twig\Environment $twig,
|
||||
\Swift_Mailer $mailer,
|
||||
MailerInterface $mailer,
|
||||
// due to bug https://github.com/symfony/swiftmailer-bundle/issues/127
|
||||
\Swift_Transport $mailerTransporter,
|
||||
RouterInterface $router,
|
||||
// \Swift_Transport $mailerTransporter,
|
||||
RouterInterface $router,
|
||||
TranslatorInterface $translator,
|
||||
$routeParameters
|
||||
) {
|
||||
@@ -88,7 +89,7 @@ class Mailer
|
||||
$this->router = $router;
|
||||
$this->translator = $translator;
|
||||
$this->routeParameters = $routeParameters;
|
||||
$this->forcedMailer = new \Swift_Mailer($mailerTransporter);
|
||||
//$this->forcedMailer = new \Swift_Mailer($mailerTransporter);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user