mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-29 19:53:11 +01:00
31 lines
528 B
PHP
31 lines
528 B
PHP
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\ScanForNewReleaseCalled;
|
|
use App\Services\ReleaseRadarService;
|
|
|
|
class ReleaseRadar
|
|
{
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function handle(ScanForNewReleaseCalled $event)
|
|
{
|
|
$releaseRadarService = app()->make(ReleaseRadarService::class);
|
|
$releaseRadarService::scheduledScan();
|
|
}
|
|
}
|