Services/AzineTwigSwiftMailer.php
private function loadTemplate($template)
    {
        if (!array_key_exists($template, $this->templateCache)) {
            $this->templateCache[$template] = $this->twig->loadTemplate($template);
        }

        return $this->templateCache[$template];
    }
private function loadTemplate($template)
    {
        if (!array_key_exists($template, $this->templateCache)) {
            $this->templateCache[$template] = $this->twig->loadTemplate($template);
        }

        return $this->templateCache[$template];
    }
private function loadTemplate ( $ template ) { if ( ! array_key_exists ( $ template , $ this -> templateCache ) ) { $ this -> templateCache [ $ template ] = $ this -> twig -> loadTemplate ( $ template ) ; } return $ this -> templateCache [ $ template ] ; }
Get the template from the cache if it was loaded already.

@param string $template

@return \Twig_Template
Get the template from the cache if it was loaded already .