PHP Class Elcodi\Store\PageBundle\EventListener\Abstracts\AbstractEmailSenderEventListener

显示文件 Open project: elcodi/bamboo

Protected Properties

Property Type Description
$mailer Swift_Mailer Mailer
$pageRepository Elcodi\Component\Page\Repository\PageRepository Page repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store
$twig Twig_Environment Twig

Public Methods

Method Description
__construct ( Swift_Mailer $mailer, Twig_Environment $twig, Elcodi\Component\Page\Repository\PageRepository $pageRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, TemplateLocator $templateLocator ) Construct

Protected Methods

Method Description
sendEmail ( string $emailName, array $context, string $receiverEmail ) Send email

Method Details

__construct() public method

Construct
public __construct ( Swift_Mailer $mailer, Twig_Environment $twig, Elcodi\Component\Page\Repository\PageRepository $pageRepository, Elcodi\Component\Store\Entity\Interfaces\StoreInterface $store, TemplateLocator $templateLocator )
$mailer Swift_Mailer Mailer
$twig Twig_Environment Twig
$pageRepository Elcodi\Component\Page\Repository\PageRepository Page repository
$store Elcodi\Component\Store\Entity\Interfaces\StoreInterface Store
$templateLocator Elcodi\Store\CoreBundle\Services\TemplateLocator A template locator

sendEmail() protected method

Send email
protected sendEmail ( string $emailName, array $context, string $receiverEmail )
$emailName string Email name
$context array Context
$receiverEmail string Receiver email

Property Details

$mailer protected_oe property

Mailer
protected Swift_Mailer $mailer
return Swift_Mailer

$pageRepository protected_oe property

Page repository
protected PageRepository,Elcodi\Component\Page\Repository $pageRepository
return Elcodi\Component\Page\Repository\PageRepository

$store protected_oe property

Store
protected StoreInterface,Elcodi\Component\Store\Entity\Interfaces $store
return Elcodi\Component\Store\Entity\Interfaces\StoreInterface

$twig protected_oe property

Twig
protected Twig_Environment $twig
return Twig_Environment