/** * @param \Brick\App\View\View $view * * @return string */ protected function renderAsString(View $view) { if ($this->injector) { $this->injector->inject($view); } return $view->render(); }
/** * Renders a partial View. * * @param \Brick\App\View\View $view The View object to render. * * @return string The rendered View. */ public final function partial(View $view) { if ($this->injector) { $this->injector->inject($view); } return $view->render(); }