Something went wrong. Try again.
Build Reactive Signals for Bluesky's AT Protocol Firehose in Laravel
Something went wrong. Try again.
822 B · 35 lines
PHP
at dev
123456789101112131415161718192021222324252627282930313233343536<?php
namespace SocialDept\AtpSignals\Jobs;
use Illuminate\Bus\Queueable;use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Foundation\Bus\Dispatchable;use Illuminate\Queue\InteractsWithQueue;use Illuminate\Queue\SerializesModels;use SocialDept\AtpSignals\Events\SignalEvent;use SocialDept\AtpSignals\Signals\Signal;
class ProcessSignalJob implements ShouldQueue{ use Dispatchable; use InteractsWithQueue; use Queueable; use SerializesModels;
public function __construct( protected Signal $signal, protected SignalEvent $event, ) { }
public function handle(): void { $this->signal->handle($this->event); }
public function failed(\Throwable $exception): void { $this->signal->failed($this->event, $exception); }}