示例#1
0
文件: Advanced.php 项目: bloge/bloge
 /**
  * @{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;
 }
示例#2
0
文件: BasicApp.php 项目: bloge/bloge
 /**
  * @{inheritDoc}
  */
 public function fetch($route, array $data = [])
 {
     return $this->content->fetch($route, $data);
 }