Exemple #1
0
 /**
  * @{inheritDoc}
  */
 public function fetch($route, array $data = [])
 {
     $data = $this->dataMapper->data($route);
     $route = $this->dispatcher->dispatch($route);
     $data = array_merge($data, $this->content->fetch($route, $data));
     $data = $this->processor->process($route, $data);
     if (!$data) {
         throw new NotFoundException($route);
     }
     return $data;
 }
Exemple #2
0
 /**
  * @{inheritDoc}
  */
 public function fetch($route, array $data = [])
 {
     return $this->content->fetch($route, $data);
 }