Exemplo n.º 1
0
 public function deleteWebsite(Website $website)
 {
     $websiteUploadFolder = $this->webDir . DIRECTORY_SEPARATOR . $website->getOptions()->getUploadDir();
     $fs = new FileSystem();
     $fs->remove($websiteUploadFolder);
     $this->om->remove($website);
     $this->om->flush();
 }
Exemplo n.º 2
0
 public function deleteWebsiteTestsFolder(Website $website, $webDir)
 {
     $websiteUploadFolder = $webDir . DIRECTORY_SEPARATOR . $website->getOptions()->getUploadDir();
     $fs = new FileSystem();
     $fs->remove($websiteUploadFolder);
 }