Skip to content

Commit

Permalink
Fix compatibility with backup-manager v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Feb 8, 2016
1 parent c775f41 commit 03513fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/DbBackupCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace BackupManager\Laravel;

use BackupManager\Filesystems\Destination;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use BackupManager\Databases\DatabaseProvider;
Expand Down Expand Up @@ -85,11 +86,17 @@ public function fire() {
$this->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')
);

Expand Down

0 comments on commit 03513fe

Please sign in to comment.