Skip to content

Commit d7e6d12

Browse files
committed
Merge pull request #46 from NicolasMahe/master
Fix compatibility with backup-manager v1.1.1
2 parents c775f41 + 03513fe commit d7e6d12

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/DbBackupCommand.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace BackupManager\Laravel;
22

3+
use BackupManager\Filesystems\Destination;
34
use Illuminate\Console\Command;
45
use Symfony\Component\Console\Input\InputOption;
56
use BackupManager\Databases\DatabaseProvider;
@@ -85,11 +86,17 @@ public function fire() {
8586
$this->validateArguments();
8687
}
8788

89+
$destinations = [
90+
new Destination(
91+
$this->option('destination'),
92+
$this->option('destinationPath')
93+
)
94+
];
95+
8896
$this->info('Dumping database and uploading...');
8997
$this->backupProcedure->run(
9098
$this->option('database'),
91-
$this->option('destination'),
92-
$this->option('destinationPath'),
99+
$destinations,
93100
$this->option('compression')
94101
);
95102

0 commit comments

Comments
 (0)