class RequestPasswordResetJob extends AbstractJob

Traits

InteractsWithQueue
Queueable
SerializesModels

Properties

bool $deleteWhenMissingModels If a serialized model on this job has been deleted between dispatch and worker pickup, treat the job as a no-op and remove it from the queue rather than calling failed(), which re-deserializes the payload and throws ModelNotFoundException a second time — producing duplicate error log entries for what is in fact a handled-correctly race. from AbstractJob

Methods

__construct(string $email)

Present so subclasses can safely call `parent::__construct()` (many do).

void
handle(SettingsRepositoryInterface $settings, UrlGenerator $url, TranslatorInterface $translator, UserRepository $users, Queue $queue)

No description

Details

__construct(string $email)

Present so subclasses can safely call `parent::__construct()` (many do).

Queue routing is applied when the job is pushed — see {\Flarum\Queue\RoutingQueue} and {\Flarum\Extend\Queue} — not here, so there is nothing to do at construction.

Parameters

string $email

void handle(SettingsRepositoryInterface $settings, UrlGenerator $url, TranslatorInterface $translator, UserRepository $users, Queue $queue)

Parameters

SettingsRepositoryInterface $settings
UrlGenerator $url
TranslatorInterface $translator
UserRepository $users
Queue $queue

Return Value

void