Skip to content

Commit

Permalink
Merge pull request #21 from 2bj/patch-2
Browse files Browse the repository at this point in the history
replaced ClassName::class with 'ClassName'
  • Loading branch information
freekmurze committed Mar 19, 2015
2 parents 99556f1 + a0e6145 commit bbc5792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function getAllFilesToBeBackedUp()
$files = [];

if (config('laravel-backup.source.backup-db')) {
$databaseBackupHandler = app()->make(DatabaseBackupHandler::class);
$databaseBackupHandler = app()->make('Spatie\Backup\BackupHandlers\Database\DatabaseBackupHandler');
foreach ($databaseBackupHandler->getFilesToBeBackedUp() as $file) {
$files[] = ['realFile' => $file, 'fileInZip' => 'db/dump.sql'];
}
Expand All @@ -80,7 +80,7 @@ protected function getAllFilesToBeBackedUp()
}

$this->comment('Determining which files should be backed up...');
$fileBackupHandler = app()->make(FilesBackupHandler::class)
$fileBackupHandler = app()->make('Spatie\Backup\BackupHandlers\Files\FilesBackupHandler')
->setIncludedFiles(config('laravel-backup.source.files.include'))
->setExcludedFiles(config('laravel-backup.source.files.exclude'));
foreach ($fileBackupHandler->getFilesToBeBackedUp() as $file) {
Expand Down

0 comments on commit bbc5792

Please sign in to comment.