mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-02 05:03:52 +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();
|
|
}
|
|
}
|