mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-26 17:09:11 +01:00
39 lines
813 B
PHP
39 lines
813 B
PHP
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\ScanForNewReleaseCalled;
|
|
use App\Services\ReleaseRadarService;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class ReleaseRadar
|
|
{
|
|
/**
|
|
* @var ReleaseRadarService
|
|
*/
|
|
protected $releaseRadar;
|
|
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @param \App\Services\ReleaseRadarService $releaseRadar
|
|
* @return void
|
|
*/
|
|
public function __construct(ReleaseRadarService $releaseRadar)
|
|
{
|
|
$this->releaseRadar = $releaseRadar;
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @param \App\Events\ScanForNewReleaseCalled $event
|
|
* @return void
|
|
*/
|
|
public function handle(ScanForNewReleaseCalled $event)
|
|
{
|
|
$this->releaseRadar->scheduledScan();
|
|
Log::info('Scheduled release scan complete');
|
|
}
|
|
}
|