0 follower

Final Class Yiisoft\Queue\Middleware\Push\AdapterPushHandler

InheritanceYiisoft\Queue\Middleware\Push\AdapterPushHandler
ImplementsYiisoft\Queue\Middleware\Push\PushHandlerInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Queue\Adapter\AdapterInterface $adapter )
$adapter Yiisoft\Queue\Adapter\AdapterInterface

                public function __construct(
    private readonly AdapterInterface $adapter,
) {}

            
handlePush() public method

public Yiisoft\Queue\Message\MessageInterface handlePush ( Yiisoft\Queue\Message\MessageInterface $message )
$message Yiisoft\Queue\Message\MessageInterface

                public function handlePush(MessageInterface $message): MessageInterface
{
    return $this->adapter->push($message);
}