From 03513fecbfac45551d501f21d2183c3719e86afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mahe=CC=81?= Date: Mon, 8 Feb 2016 11:18:15 +0700 Subject: [PATCH] Fix compatibility with backup-manager v1.1.1 --- src/DbBackupCommand.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/DbBackupCommand.php b/src/DbBackupCommand.php index ce5708b..e044d15 100644 --- a/src/DbBackupCommand.php +++ b/src/DbBackupCommand.php @@ -1,5 +1,6 @@ validateArguments(); } + $destinations = [ + new Destination( + $this->option('destination'), + $this->option('destinationPath') + ) + ]; + $this->info('Dumping database and uploading...'); $this->backupProcedure->run( $this->option('database'), - $this->option('destination'), - $this->option('destinationPath'), + $destinations, $this->option('compression') );