2FAuth/app/Listeners/ReleaseRadar.php

31 lines
528 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;
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.
*
* @return void
*/
public function handle(ScanForNewReleaseCalled $event)
2022-09-21 21:50:41 +02:00
{
$releaseRadarService = app()->make(ReleaseRadarService::class);
$releaseRadarService::scheduledScan();
2022-09-21 21:50:41 +02:00
}
2022-11-22 15:15:52 +01:00
}