Final Class Yiisoft\Queue\Exception\AdapterConfiguration\AdapterNotConfiguredException
| Inheritance | Yiisoft\Queue\Exception\AdapterConfiguration\AdapterNotConfiguredException » RuntimeException |
|---|---|
| Implements | Yiisoft\FriendlyException\FriendlyExceptionInterface |
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $message | Yiisoft\Queue\Exception\AdapterConfiguration\AdapterNotConfiguredException |
Public Methods
Property Details
Method Details
| public string|null getSolution ( ) |
public function getSolution(): ?string
{
$queueClass = Queue::class;
$queueProviderInterface = QueueProviderInterface::class;
return <<<SOLUTION
Adapter property must be set in the Queue object before you can use it.
Please use either a constructor "\$adapter" parameter, or "withAdapter()" queue method
to set an appropriate adapter.
A more convenient way to get a configured Queue is a QueueFactory usage.
References:
- $queueClass::\$adapter
- $queueClass::withAdapter()
- $queueProviderInterface
SOLUTION;
}
Signup or Login in order to comment.