Skip to content

Commit

Permalink
Quick fix 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
hsemix committed Nov 30, 2023
1 parent 0bcfcf4 commit 08dafae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yuga/Scheduler/SchedulerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ class SchedulerServiceProvider extends ServiceProvider

public function load(Application $app)
{
// if ($app->runningInConsole()) {
if ($app->runningInConsole()) {
$app->singleton('scheduler', function () use($app) {
return new Scheduler($app);
});
$this->scheduler = $app->resolve('scheduler');
// }
}
}

public function boot()
Expand Down

0 comments on commit 08dafae

Please sign in to comment.