2FAuth/app/Listeners/ReleaseRadar.php

35 lines
686 B
PHP
Raw Normal View History

2022-09-21 21:50:41 +02:00
<?php
namespace App\Listeners;
use App\Events\ScanForNewReleaseCalled;
2022-09-21 21:50:41 +02:00
use App\Services\ReleaseRadarService;
use Illuminate\Support\Facades\Log;
class ReleaseRadar
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
2022-09-21 21:50:41 +02:00
{
//
2022-09-21 21:50:41 +02:00
}
/**
* Handle the event.
*
* @param \App\Events\ScanForNewReleaseCalled $event
2022-09-21 21:50:41 +02:00
* @return void
*/
public function handle(ScanForNewReleaseCalled $event)
2022-09-21 21:50:41 +02:00
{
$releaseRadarService = app()->make(ReleaseRadarService::class);
$releaseRadarService::scheduledScan();
Log::info('Scheduled release scan complete');
2022-09-21 21:50:41 +02:00
}
2022-11-22 15:15:52 +01:00
}