Example #1
0
 /**
  * {@inheritdoc}
  */
 public function remove(ImageInterface $image)
 {
     $path = $image->getPath();
     if (null === $path) {
         return false;
     }
     $path = $this->getAbsolutePath($path);
     if (is_file($path)) {
         return $this->filesystem->remove($path);
     }
 }
Example #2
0
 public function getWebPath(ImageInterface $image)
 {
     return $this->webRoot . '/' . $image->getPath();
 }