/** * {@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); } }
public function getWebPath(ImageInterface $image) { return $this->webRoot . '/' . $image->getPath(); }