Skip to content

Commit 0c67601

Browse files
ymezardNyholm
authored andcommitted
Fix #30 (#33)
* Update BackupCommand.php Fixed the issue #30 on Symfony 3.2 * Update RestoreCommand.php
1 parent 78caace commit 0c67601

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Command/BackupCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function __construct(Manager $manager, $filePrefix)
4848
protected function configure()
4949
{
5050
$this
51+
->setName(self::$defaultName)
5152
->setDescription('Starts a new backup.')
5253
->addArgument('database', InputArgument::REQUIRED, 'What database configuration do you want to backup?')
5354
->addArgument('destinations', InputArgument::IS_ARRAY, 'What storages do you want to upload the backup to?')
@@ -69,4 +70,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
6970

7071
$this->manager->makeBackup()->run($input->getArgument('database'), $destinations, $input->getOption('compression'));
7172
}
72-
}
73+
}

Command/RestoreCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public function __construct(Manager $manager)
4141
protected function configure()
4242
{
4343
$this
44+
->setName(self::$defaultName)
4445
->setDescription('Restore form backup.')
4546
->addArgument('database', InputArgument::REQUIRED, 'What database configuration do you want to backup?')
4647
->addArgument('destination', InputArgument::REQUIRED, 'What storage do you want to restore from?')
@@ -59,4 +60,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
5960
);
6061
}
6162

62-
}
63+
}

0 commit comments

Comments
 (0)