/** * {@inheritdoc} */ public function display(array $context, array $blocks = array()) { $name = $this->getTemplateName(); //The first time, PathLoader is used so we only have the full path, not a name. The first creator/composers are run from View::make, so just skip that. if (!is_file($name)) { /** @var \Illuminate\View\Environment $env */ $env = $context['__env']; \View::callCreator($view = new View($env, $env->getEngineResolver()->resolve('twig'), $name, null, $context)); \View::callComposer($view); $context = $view->getData(); } parent::display($context, $blocks); }