Example #1
0
 /**
  * @param \Brick\App\View\View $view
  *
  * @return string
  */
 protected function renderAsString(View $view)
 {
     if ($this->injector) {
         $this->injector->inject($view);
     }
     return $view->render();
 }
Example #2
0
 /**
  * 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();
 }