/**
  * {@inheritDoc}
  */
 public function find(array $sources, $limit = 25, $offset = 0)
 {
     $items = $this->aggregator->find($sources, $limit, $offset);
     foreach ($items as &$item) {
         if (isset($this->transformers[$item['type']])) {
             $item['data'] = call_user_func_array($this->transformers[$item['type']], [$item]);
         }
     }
     return $items;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function find(array $sources, $limit = 25, $offset = 0)
 {
     return $this->aggregator->find($sources, $limit, $offset);
 }