public function restore($filename)
    {
        //Imports and clears the cache
        (new BackupImport)->filename($this->getFilename($filename))->import();
        Cache::clearAll();

        $this->Flash->success(I18N_OPERATION_OK);

        return $this->redirect(['action' => 'index']);
    }
public function restore($filename)
    {
        //Imports and clears the cache
        (new BackupImport)->filename($this->getFilename($filename))->import();
        Cache::clearAll();

        $this->Flash->success(I18N_OPERATION_OK);

        return $this->redirect(['action' => 'index']);
    }
public function restore ( $ filename ) { //Imports and clears the cache ( new BackupImport ) -> filename ( $ this -> getFilename ( $ filename ) ) -> import ( ) ; Cache :: clearAll ( ) ; $ this -> Flash -> success ( I18N_OPERATION_OK ) ; return $ this -> redirect ( [ 'action' => 'index' ] ) ; }
Restores a backup file
@param string $filename Backup filename
@return \Cake\Network\Response|null
@uses DatabaseBackup\Utility\BackupImport::filename()
@uses DatabaseBackup\Utility\BackupImport::import()
@uses getFilename()
Restores a backup file