Interface Yiisoft\Queue\Middleware\Push\PushMiddlewareFactoryInterface
| Implemented by | Yiisoft\ |
|---|
Creates a middleware based on the definition provided.
You may implement this interface if you want to introduce custom definitions or pass additional data to the middleware created.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| createPushMiddleware() | Create a middleware based on the definition provided. | Yiisoft\ |
Method Details
Create a middleware based on the definition provided.
| public abstract Yiisoft\ | ||
| $middlewareDefinition | mixed |
Middleware definition to use. |
| throws | Yiisoft\ |
If the definition is not supported or is invalid. |
|---|---|---|
public function createPushMiddleware(mixed $middlewareDefinition): PushMiddlewareInterface;
User Contributed Notes
Leave a comment
Join the conversation to share a note.