Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:database:backup')->setDescription('Backup all your database data')->addOption('destination', 'd', InputOption::VALUE_REQUIRED, 'Destination directory relative to kernel root', 'backups')->addOption('date-pattern', null, InputOption::VALUE_REQUIRED, 'The date pattern for backup filename', 'Y-m-d-H-i-s')->addOption('gzip', null, InputOption::VALUE_REQUIRED, 'Enable gzip compressing, value provides compress level', false);
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('doctrine:database:restore')->setDescription('Restores a backup')->addArgument('file', InputArgument::REQUIRED, 'The backup filename');
 }