public function render($templateName, $context = [], $globals = [])
    {
        Deprecated::method(3.3);

        $template = $this->app['twig']->resolveTemplate($templateName);

        foreach ($globals as $name => $value) {
            $this->app['twig']->addGlobal($name, $value);
        }

        $html = twig_include($this->app['twig'], $context, $template, [], true, false, $this->safe);

        $response = new TemplateResponse($template->getTemplateName(), $context, $html);

        return $response;
    }