Closed khattab17 closed 1 year ago
I wouldn't want to introduce a new env variable right now. You can achieve this behavior by extending the Service Provider configuration check. You would also need to override the autoloading behavior.
<?php
namespace romanzipp\QueueMonitor\Providers;
use Illuminate\Support\Facades\Config;
class ExtendedQueueMonitorProvider extends QueueMonitorProvider
{
public function boot(): void
{
if (Config::get('queue-monitor.queue_monitor_enabled')) {
parent::boot();
}
}
}
…ions