Exemplo n.º 1
0
 /**
  * @param QueryRequest $queryRequest
  * @throws SnapshotException
  */
 public function cleanSnapshots(QueryRequest $queryRequest)
 {
     //delete all snapshots
     try {
         $this->snapshotManager->init();
         $this->snapshotManager->setQueryRequest($queryRequest);
         $snapshots = $this->snapshotManager->getSnapshots();
         foreach ($snapshots as $snapshot) {
             /** @var SplFileInfo $snapshot */
             $this->snapshotManager->deleteSnapshot($snapshot);
         }
     } catch (SnapshotException $e) {
         throw $e;
     }
 }