PHP Class Sylius\Bundle\MailerBundle\Renderer\Adapter\EmailTwigAdapter

Author: Daniel Richter ([email protected])
Author: Paweł Jędrzejewski ([email protected])
Author: Jérémy Leherpeur ([email protected])
Inheritance: extends Sylius\Component\Mailer\Renderer\Adapter\AbstractAdapter
Mostra file Open project: sylius/sylius

Protected Properties

Property Type Description
$twig Twig_Environment

Public Methods

Method Description
__construct ( Twig_Environment $twig )
render ( Sylius\Component\Mailer\Model\EmailInterface $email, array $data = [] )

Private Methods

Method Description
getRenderedEmail ( Sylius\Component\Mailer\Model\EmailInterface $email, array $data ) : Sylius\Component\Mailer\Renderer\RenderedEmail
provideEmailWithTemplate ( Sylius\Component\Mailer\Model\EmailInterface $email, array $data ) : Sylius\Component\Mailer\Renderer\RenderedEmail
provideEmailWithoutTemplate ( Sylius\Component\Mailer\Model\EmailInterface $email, array $data ) : Sylius\Component\Mailer\Renderer\RenderedEmail

Method Details

__construct() public method

public __construct ( Twig_Environment $twig )
$twig Twig_Environment

render() public method

public render ( Sylius\Component\Mailer\Model\EmailInterface $email, array $data = [] )
$email Sylius\Component\Mailer\Model\EmailInterface
$data array

Property Details

$twig protected_oe property

protected Twig_Environment $twig
return Twig_Environment