Example #1
0
 /**
  * @param string $fileName
  * @return void
  */
 private function deleteImage($fileName)
 {
     $path = $this->config->getMediaPath();
     if ($fileName && file_exists($path . '/' . $fileName)) {
         unlink($path . '/' . $fileName);
     }
     return;
 }