Example #1
0
 /**
  * Serve a collections raw assets.
  *
  * @param  \Basset\Collection  $collection
  * @param  string  $group
  * @param  string  $format
  * @return array
  */
 protected function serveRawAssets(Collection $collection, $group, $format)
 {
     $responses = array();
     foreach ($collection->getAssetsOnlyRaw($group) as $asset) {
         $path = $asset->getRelativePath();
         $responses[] = $this->{'create' . studly_case($group) . 'Element'}($path, $format);
     }
     return $responses;
 }