Beispiel #1
0
 /**
  * Same as {@see getFile} for images.
  *
  * @param ImageInterface|string $path
  *
  * @throws FileNotFoundException If file was not found.
  *
  * @return ImageInterface
  */
 public function getImage($path)
 {
     if ($path instanceof ImageInterface) {
         return $path;
     }
     $file = $this->getFile($path);
     return $this->filesystem->getImage($file->getFullPath());
 }