for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ShopBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Mailer\Sender\SenderInterface;
/**
* @author Grzegorz Sadowski <[email protected]>
final class ContactEmailManager implements ContactEmailManagerInterface
{
* @var SenderInterface
private $emailSender;
* @param SenderInterface $emailSender
public function __construct(SenderInterface $emailSender)
$this->emailSender = $emailSender;
}
* {@inheritdoc}
public function sendContactRequest(array $data, array $recipients)
$this->emailSender->send(Emails::CONTACT_REQUEST, $recipients, ['data' => $data]);