Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function transport(SourceInterface $source)
 {
     $filename = $source->getSource();
     if (FileSystem::checkFile($filename)) {
         return new Stream(fopen($filename, 'r+'));
     }
     throw new \RuntimeException(sprintf('The file "%s" does not exist or is not readable.', $filename));
 }