Skip to content
PHP Ecosystem
Explore

QueueDriverDetector

API reference › Debug Core › Panel › Queue › QueueDriverDetector

final classPHPForge\Debug\Panel\Queue\QueueDriverDetector
Sourcesrc/Panel/Queue/QueueDriverDetector.php

Resolves the friendly display name of a queue driver from the FQCN of the sender that emitted the event.

MethodDescriptionDefined by
detect() staticDetects the friendly driver label and the async flag from a queue class FQCN.QueueDriverDetector
public static function detect(string $fqcn): array{0: string, 1: bool}

Detects the friendly driver label and the async flag from a queue class FQCN.

Parameters

ParameterTypeDescription
$fqcnstringFully qualified class name of the queue sender.

Returns

array{0: string, 1: bool}: [displayName, isAsync].