sf4 resolve errors and depreciations

This commit is contained in:
2020-07-30 13:53:15 +02:00
parent 7881efa5fe
commit ced9d17d03
92 changed files with 52 additions and 51 deletions

View File

@@ -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);
}