0 follower

Interface Yiisoft\Queue\Middleware\Push\PushMiddlewareFactoryInterface

Implemented byYiisoft\Queue\Middleware\Push\PushMiddlewareFactory

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

Hide inherited methods

Method Description Defined By
createPushMiddleware() Create a middleware based on the definition provided. Yiisoft\Queue\Middleware\Push\PushMiddlewareFactoryInterface

Method Details

Hide inherited methods

createPushMiddleware() public abstract method

Create a middleware based on the definition provided.

public abstract Yiisoft\Queue\Middleware\Push\PushMiddlewareInterface createPushMiddleware ( mixed $middlewareDefinition )
$middlewareDefinition mixed

Middleware definition to use.

throws Yiisoft\Queue\Middleware\InvalidMiddlewareDefinitionException

If the definition is not supported or is invalid.

                public function createPushMiddleware(mixed $middlewareDefinition): PushMiddlewareInterface;