Skip to content

Commit

Permalink
Add commands to force queue sending
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed May 8, 2020
1 parent 3805a40 commit 0ecdfb0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/CollectorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\ServiceProvider;
use Turbo124\Beacon\Collector;
use Turbo124\Beacon\Commands\ForceSend;
use Turbo124\Beacon\Jobs\BatchMetrics;

class CollectorServiceProvider extends ServiceProvider
Expand All @@ -22,10 +23,11 @@ public function boot()

}

// \Illuminate\Support\Facades\Event::listen(
// Turbo124\Beacon\Events\MetricRegistered::class,
// MyListener::class
// );
if ($this->app->runningInConsole()) {
$this->commands([
ForceSend::class,
]);
}
}

/**
Expand Down

0 comments on commit 0ecdfb0

Please sign in to comment.