/** * {@inheritdoc} */ protected function render($template, array $variables = [], array $globals = []) { if (!isset($variables['context'])) { $variables = ['context' => $variables]; } return parent::render($template, $variables, $globals); }
/** * {@inheritdoc} */ protected function render($template, array $context = [], array $globals = []) { if (!isset($context['context'])) { $context = ['context' => $context]; } return parent::render($template, $context, $globals); }