public function onRestoreStarted(RestoreEvent $event)
    {
        $database = $event->getDatabase();
        if ($database->getWithDefault('state', BackupStatus::STATE_SUCCESS) === BackupStatus::STATE_FAILED) {
            $this->output->writeln('  <info>Bypassed</info>');

            $event->stopPropagation();
        }
    }
public function onRestoreStarted(RestoreEvent $event)
    {
        $database = $event->getDatabase();
        if ($database->getWithDefault('state', BackupStatus::STATE_SUCCESS) === BackupStatus::STATE_FAILED) {
            $this->output->writeln('  <info>Bypassed</info>');

            $event->stopPropagation();
        }
    }
public function onRestoreStarted ( RestoreEvent $ event ) { $ database = $ event -> getDatabase ( ) ; if ( $ database -> getWithDefault ( 'state' , BackupStatus :: STATE_SUCCESS ) === BackupStatus :: STATE_FAILED ) { $ this -> output -> writeln ( '  <info>Bypassed</info>' ) ; $ event -> stopPropagation ( ) ; } }
Bypasses failed backup in restore process.

@param RestoreEvent $event
Bypasses failed backup in restore process .