Twig/CmsExtension.php
public function render(string $twigTemplate, array $block = array()) : string
    {   
        $template = $this->sfTwig->createTemplate($twigTemplate);

        return $template->render(
            array_merge(
                $this->cmsContext->toArray(),
                $block
            )
        );
    }
public function render(string $twigTemplate, array $block = array()) : string
    {   
        $template = $this->sfTwig->createTemplate($twigTemplate);

        return $template->render(
            array_merge(
                $this->cmsContext->toArray(),
                $block
            )
        );
    }
cms_render('twig {{ code }}')
cms_render('twig {{ code }}', { complement: 'more context var' })