mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 22:31:58 +01:00
35 lines
686 B
PHP
35 lines
686 B
PHP
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\ScanForNewReleaseCalled;
|
|
use App\Services\ReleaseRadarService;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class ReleaseRadar
|
|
{
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @param \App\Events\ScanForNewReleaseCalled $event
|
|
* @return void
|
|
*/
|
|
public function handle(ScanForNewReleaseCalled $event)
|
|
{
|
|
$releaseRadarService = app()->make(ReleaseRadarService::class);
|
|
$releaseRadarService::scheduledScan();
|
|
|
|
Log::info('Scheduled release scan complete');
|
|
}
|
|
}
|