Commit 86b77672 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

UploadedFileListener: ne se plaint pas de ne pas trouver un fichier quand on...

UploadedFileListener: ne se plaint pas de ne pas trouver un fichier quand on essaie de le supprimer.
Showing with 5 additions and 1 deletion
+5 -1
......@@ -64,6 +64,10 @@ class UploadedFileListener
*/
public function postRemove(UploadedFile $file, LifecycleEventArgs $event)
{
$this->filesystem->delete($file->getPath());
try {
$this->filesystem->delete($file->getPath());
} catch(\Gaufrette\Exception\FileNotFound $ex) {
// NOOP
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment