2022-09-21 21:50:41 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Listeners;
|
|
|
|
|
2022-10-12 11:10:51 +02:00
|
|
|
use App\Events\ScanForNewReleaseCalled;
|
2022-09-21 21:50:41 +02:00
|
|
|
use App\Services\ReleaseRadarService;
|
|
|
|
|
|
|
|
class ReleaseRadar
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create the event listener.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2023-03-08 17:43:26 +01:00
|
|
|
public function __construct()
|
2022-09-21 21:50:41 +02:00
|
|
|
{
|
2023-03-08 17:43:26 +01:00
|
|
|
//
|
2022-09-21 21:50:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle the event.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-10-12 11:10:51 +02:00
|
|
|
public function handle(ScanForNewReleaseCalled $event)
|
2022-09-21 21:50:41 +02:00
|
|
|
{
|
2023-03-08 17:43:26 +01:00
|
|
|
$releaseRadarService = app()->make(ReleaseRadarService::class);
|
|
|
|
$releaseRadarService::scheduledScan();
|
2022-09-21 21:50:41 +02:00
|
|
|
}
|
2022-11-22 15:15:52 +01:00
|
|
|
}
|