A
Size: a a a
A
VK
АЛ
VK
VK
BB
BB
VS
class MailerService
{
private Swift_SmtpTransport $transport;
private Swift_Mailer $mailer;
public function __construct()
{
$this->transport = (new Swift_SmtpTransport(
EnvHelper::getValue('MAILER_HOST'), EnvHelper::getValue('MAILER_PORT')
))->setUsername(EnvHelper::getValue('MAILER_FROM_EMAIL'))
->setPassword(EnvHelper::getValue('MAILER_PASSWORD'))
->setEncryption('tls');
$this->mailer = new Swift_Mailer($this->transport);
}
}
BB
class MailerService
{
private Swift_SmtpTransport $transport;
private Swift_Mailer $mailer;
public function __construct()
{
$this->transport = (new Swift_SmtpTransport(
EnvHelper::getValue('MAILER_HOST'), EnvHelper::getValue('MAILER_PORT')
))->setUsername(EnvHelper::getValue('MAILER_FROM_EMAIL'))
->setPassword(EnvHelper::getValue('MAILER_PASSWORD'))
->setEncryption('tls');
$this->mailer = new Swift_Mailer($this->transport);
}
}
VM
class MailerService
{
private Swift_SmtpTransport $transport;
private Swift_Mailer $mailer;
public function __construct()
{
$this->transport = (new Swift_SmtpTransport(
EnvHelper::getValue('MAILER_HOST'), EnvHelper::getValue('MAILER_PORT')
))->setUsername(EnvHelper::getValue('MAILER_FROM_EMAIL'))
->setPassword(EnvHelper::getValue('MAILER_PASSWORD'))
->setEncryption('tls');
$this->mailer = new Swift_Mailer($this->transport);
}
}
VS
VS
BB