public function getMailRendered($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        $id = $this->getCacheId($template, $variables, $type);

        if (!isset($this->cache[$template][$id])) {
            $this->cache[$template][$id] = $this->getTemplater()->render($template, $variables, $type);
        }

        return $this->cache[$template][$id];
    }
public function getMailRendered($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        $id = $this->getCacheId($template, $variables, $type);

        if (!isset($this->cache[$template][$id])) {
            $this->cache[$template][$id] = $this->getTemplater()->render($template, $variables, $type);
        }

        return $this->cache[$template][$id];
    }
public function getMailRendered ( $ template , array $ variables = [ ] , $ type = MailTypes :: TYPE_ALL ) { $ id = $ this -> getCacheId ( $ template , $ variables , $ type ) ; if ( ! isset ( $ this -> cache [ $ template ] [ $ id ] ) ) { $ this -> cache [ $ template ] [ $ id ] = $ this -> getTemplater ( ) -> render ( $ template , $ variables , $ type ) ; } return $ this -> cache [ $ template ] [ $ id ] ; }
Render the mail template.

@param string $template  The mail template name
@param array  $variables The variables of template
@param string $type      The mail type defined in MailTypes::TYPE_*

@return MailRenderedInterface
Render the mail template .