Final Class Yiisoft\Queue\Middleware\InvalidMiddlewareDefinitionException
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Method Details
| public mixed __construct ( mixed $middlewareDefinition, integer $code = 0, ?\ | ||
| $middlewareDefinition | mixed | |
| $code | integer | |
| $previous | ?\ |
|
public function __construct(mixed $middlewareDefinition, int $code = 0, ?Throwable $previous = null)
{
$message = 'Parameter should be either middleware class name or a callable.';
$definitionString = $this->convertDefinitionToString($middlewareDefinition);
if ($definitionString !== null) {
$message .= ' Got ' . $definitionString . '.';
}
parent::__construct($message, $code, $previous);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.