/**
  *
  * @param \Swift_Mailer         $mailer
  * @param UrlGeneratorInterface $router
  * @param \Twig_Environment     $twig
  * @param Logger                $logger
  * @param Translator            $translator
  * @param array                 $parameters
  * @param \Swift_Mailer         $immediateMailer
  */
 public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $router, \Twig_Environment $twig, Logger $logger, Translator $translator, TemplateProviderInterface $templateProvider, EntityManager $entityManager, array $parameters, \Swift_Mailer $immediateMailer = null)
 {
     parent::__construct($mailer, $router, $twig, $parameters);
     $this->immediateMailer = $immediateMailer;
     $this->logger = $logger;
     $this->translator = $translator;
     $this->templateProvider = $templateProvider;
     $this->entityManager = $entityManager;
     $this->noReplyEmail = $parameters[AzineEmailExtension::NO_REPLY][AzineEmailExtension::NO_REPLY_EMAIL_ADDRESS];
     $this->noReplyName = $parameters[AzineEmailExtension::NO_REPLY][AzineEmailExtension::NO_REPLY_EMAIL_NAME];
     $this->routerContext = $router->getContext();
     $this->currentHost = $this->routerContext->getHost();
     $this->encodedItemIdPattern = "/^cid:.*@/";
 }
Пример #2
0
 /**
  *
  * @param \Swift_Mailer $mailer
  * @param UrlGeneratorInterface $router
  * @param \Twig_Environment $twig
  * @param Translator $translator
  * @param TemplateProviderInterface $templateProvider
  * @param ManagerRegistry $managerRegistry
  * @param EmailOpenTrackingCodeBuilderInterface $emailOpenTrackingCodeBuilder
  * @param AzineEmailTwigExtension $emailTwigExtension
  * @param array $parameters
  * @param \Swift_Mailer $immediateMailer
  */
 public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $router, \Twig_Environment $twig, Translator $translator, TemplateProviderInterface $templateProvider, ManagerRegistry $managerRegistry, EmailOpenTrackingCodeBuilderInterface $emailOpenTrackingCodeBuilder, AzineEmailTwigExtension $emailTwigExtension, array $parameters, \Swift_Mailer $immediateMailer = null)
 {
     parent::__construct($mailer, $router, $twig, $parameters);
     $this->immediateMailer = $immediateMailer;
     $this->translator = $translator;
     $this->templateProvider = $templateProvider;
     $this->managerRegistry = $managerRegistry;
     $this->noReplyEmail = $parameters[AzineEmailExtension::NO_REPLY][AzineEmailExtension::NO_REPLY_EMAIL_ADDRESS];
     $this->noReplyName = $parameters[AzineEmailExtension::NO_REPLY][AzineEmailExtension::NO_REPLY_EMAIL_NAME];
     $this->emailOpenTrackingCodeBuilder = $emailOpenTrackingCodeBuilder;
     $this->routerContext = $router->getContext();
     $this->currentHost = $this->routerContext->getHost();
     $this->encodedItemIdPattern = "/^cid:.*@/";
     $this->emailTwigExtension = $emailTwigExtension;
 }
Пример #3
0
 public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $router, \Twig_Environment $twig, RequestStack $requestStack, array $parameters)
 {
     parent::__construct($mailer, $router, $twig, $parameters);
     $this->requestStack = $requestStack;
 }