Skip to content

Commit

Permalink
Use basic output when new console class does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 9, 2023
1 parent c4b8cae commit 20c9d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/framework/src/Console/Commands/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Hyde\Facades\Config;
use Illuminate\Support\Str;
use Illuminate\Support\Carbon;
use Hyde\RealtimeCompiler\Console;
use Illuminate\Support\Facades\Process;
use LaravelZero\Framework\Commands\Command;

Expand Down Expand Up @@ -179,6 +180,6 @@ protected function getFancyOutputHandler(): Closure

protected function useBasicOutput(): bool
{
return $this->option('no-ansi');
return $this->option('no-ansi') || ! class_exists(Console::class);
}
}

0 comments on commit 20c9d96

Please sign in to comment.