示例#1
0
 /**
  * Print info for pre-backup to output.
  *
  * @param PreBackupEvent $event
  */
 public function onPreBackup(PreBackupEvent $event)
 {
     $systemDatabase = $event->getSystemDatabase();
     $this->output->writeln(sprintf('Backup "%s" started:', $this->name));
     $this->output->writeln(sprintf(' * label:   %s', $systemDatabase->get('label')));
     $this->output->writeln(sprintf(' * message: %s', $systemDatabase->get('message')));
     $this->output->writeln(sprintf(' * started: %s', $systemDatabase->get('started')));
     $this->output->writeln('');
 }
示例#2
0
 /**
  * Extend configuration with preset.
  *
  * @param PreBackupEvent $event
  */
 public function onPreBackup(PreBackupEvent $event)
 {
     $event->setBackup($this->extend($event->getBackup()));
 }