Esempio n. 1
0
 /**
  * Get the data bound to the view instance.
  *
  * @return array
  */
 protected function gatherData()
 {
     $data = array_merge($this->environment->getShared(), $this->data);
     foreach ($data as $key => $value) {
         if ($value instanceof Renderable) {
             $data[$key] = $value->render();
         }
     }
     return $data;
 }