Skip to content

Commit

Permalink
Merge pull request #46 from NicolasMahe/master
Browse files Browse the repository at this point in the history
Fix compatibility with backup-manager v1.1.1
  • Loading branch information
mitchellvanw committed Feb 22, 2016
2 parents c775f41 + 03513fe commit d7e6d12
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 d7e6d12

Please sign in to comment.