Bolt\Response\BoltResponse::setTemplate PHP Method

setTemplate() public method

Sets the Renderer used to create this Response.
public setTemplate ( Twig_Template $template )
$template Twig_Template A template object
    public function setTemplate(Template $template)
    {
        if ($this->compiled) {
            throw new \LogicException('Template cannot be changed after the response is compiled');
        }
        $this->template = $template;
    }