16 lines
579 B
PHP
16 lines
579 B
PHP
<?php
|
|
namespace App\Jobs;
|
|
use App\Services\OrderReporting\Reporter;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
class DeliverOrderReport implements ShouldQueue
|
|
{
|
|
use Dispatchable,InteractsWithQueue,Queueable;
|
|
public $tries=1;
|
|
public $timeout=25;
|
|
public function __construct(public int $eventId) { $this->onConnection('redis')->onQueue('send_telegram'); }
|
|
public function handle(Reporter $reports): void { $reports->deliver($this->eventId); }
|
|
}
|