mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-26 17:09:11 +01:00
35 lines
701 B
PHP
35 lines
701 B
PHP
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\ReleaseRadarActivated;
|
|
use App\Services\ReleaseRadarService;
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class ReleaseRadar
|
|
{
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @param \App\Events\ReleaseRadarActivated $event
|
|
* @return void
|
|
*/
|
|
public function handle(ReleaseRadarActivated $event)
|
|
{
|
|
Log::info('Release radar activated');
|
|
|
|
$releaseRadarService = App::make(ReleaseRadarService::class);
|
|
$releaseRadarService->scanForNewRelease();
|
|
}
|
|
} |