Ejemplo n.º 1
0
 /**
  * Creates a new File instance and returns it
  *
  * @param  string $key
  * @return File
  */
 public function get($key, $filesystem)
 {
     if (is_callable(array($this->source, 'get'))) {
         // If possible, delegate getting the file object to the source adapter.
         return $this->source->get($key, $filesystem);
     }
     return new File($key, $filesystem);
 }