We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f96c75 + 2a111ec commit 0b3b6d5Copy full SHA for 0b3b6d5
src/ScheduleMonitorServiceProvider.php
@@ -5,6 +5,7 @@
5
use Illuminate\Console\Events\CommandStarting;
6
use Illuminate\Console\Scheduling\Event as SchedulerEvent;
7
use Illuminate\Support\Facades\Event;
8
+use Laravel\Horizon\Horizon;
9
use OhDear\PhpSdk\OhDear;
10
use Spatie\LaravelPackageTools\Package;
11
use Spatie\LaravelPackageTools\PackageServiceProvider;
@@ -88,6 +89,10 @@ protected function silenceOhDearJob(): self
88
89
return $this;
90
}
91
92
+ if (! class_exists(Horizon::class)) {
93
+ return $this;
94
+ }
95
+
96
$silencedJobs = config('horizon.silenced', []);
97
98
if (in_array(PingOhDearJob::class, $silencedJobs)) {
0 commit comments