# QueueDriverDetector

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

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [Queue](/docs/extensions/debug-core/reference/panel/queue/index.md) › QueueDriverDetector

| final class | `PHPForge\Debug\Panel\Queue\QueueDriverDetector` |
| --- | --- |
| Source | [`src/Panel/Queue/QueueDriverDetector.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/Queue/QueueDriverDetector.php#L19) |

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

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`detect()`](#method-detect) static | Detects the friendly driver label and the async flag from a queue class FQCN. | `QueueDriverDetector` |

## Method details

### detect() <span id="method-detect"></span>

```php
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**

| Parameter | Type | Description |
| --- | --- | --- |
| `$fqcn` | `string` | Fully qualified class name of the queue sender. |

**Returns**

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