Ojs\CoreBundle\Service\OjsMailer::__construct PHP Method

__construct() public method

OjsMailer constructor.
public __construct ( Swift_Mailer $mailer, string $mailSender, string $mailSenderName, Symfony\Bridge\Doctrine\RegistryInterface $registry, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, string $locale, Symfony\Component\Translation\TranslatorInterface $translator, boolean $preventMailMerge = false )
$mailer Swift_Mailer
$mailSender string
$mailSenderName string
$registry Symfony\Bridge\Doctrine\RegistryInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$locale string
$translator Symfony\Component\Translation\TranslatorInterface
$preventMailMerge boolean
    public function __construct(\Swift_Mailer $mailer, $mailSender, $mailSenderName, RegistryInterface $registry, TokenStorageInterface $tokenStorage, $locale, TranslatorInterface $translator, $preventMailMerge = false)
    {
        $this->mailer = $mailer;
        $this->mailSender = $mailSender;
        $this->mailSenderName = $mailSenderName;
        $this->em = $registry->getManager();
        $this->tokenStorage = $tokenStorage;
        $this->locale = $locale;
        $this->translator = $translator;
        $this->preventMailMerge = $preventMailMerge;
    }