コード例 #1
0
ファイル: Snapshot.php プロジェクト: pradeep-wagento/magento2
 /**
  * Implementation Create Backup functionality for Snapshot
  *
  * @throws \Exception
  * @return bool
  */
 public function create()
 {
     $this->_getDbBackupManager()->create();
     try {
         $result = parent::create();
     } catch (\Exception $e) {
         $this->_removeDbBackup();
         throw $e;
     }
     $this->_lastOperationSucceed = false;
     $this->_removeDbBackup();
     $this->_lastOperationSucceed = true;
     return $result;
 }