Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Fixes OutputStyle not instatiable on commands. #11
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Jul 23, 2021
1 parent f1a4b1b commit dafb076
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/Commands/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use DarkGhostHunter\Laraconfig\Migrator\Data;
use DarkGhostHunter\Laraconfig\Migrator\Migrator;
use Illuminate\Console\Command;
use Illuminate\Console\OutputStyle;
use RuntimeException;
use Symfony\Component\Console\Input\InputInterface;

Expand Down Expand Up @@ -50,6 +51,7 @@ public function handle(): int
{
// We will use the Input interface to use the same instance.
$this->getLaravel()->instance(InputInterface::class, $this->input);
$this->getLaravel()->instance(OutputStyle::class, $this->output);

try {
$this->migrator->send($this->data)->thenReturn();
Expand All @@ -60,4 +62,4 @@ public function handle(): int

return 0;
}
}
}

0 comments on commit dafb076

Please sign in to comment.