public function render(TemplateView $view)
    {
        $content = $this->twig->render($view->getTemplate(), $view->getContext()->toArray());

        $response = new TemplateResponse($view->getTemplate(), $view->getContext(), $content);

        return $response;
    }
public function render(TemplateView $view)
    {
        $content = $this->twig->render($view->getTemplate(), $view->getContext()->toArray());

        $response = new TemplateResponse($view->getTemplate(), $view->getContext(), $content);

        return $response;
    }
public function render ( TemplateView $ view ) { $ content = $ this -> twig -> render ( $ view -> getTemplate ( ) , $ view -> getContext ( ) -> toArray ( ) ) ; $ response = new TemplateResponse ( $ view -> getTemplate ( ) , $ view -> getContext ( ) , $ content ) ; return $ response ; }
Render TemplateView to a TemplateResponse.

@param TemplateView $view

@return TemplateResponse
Render TemplateView to a TemplateResponse .