Final Class Yiisoft\Queue\Middleware\Consume\ConsumeFinalHandler
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| handleConsume() | Yiisoft\ |
Method Details
| public mixed __construct ( Closure $handler ) | ||
| $handler | Closure | |
public function __construct(
private readonly Closure $handler,
) {}
| public Yiisoft\ | ||
| $request | Yiisoft\ |
|
public function handleConsume(ConsumeRequest $request): ConsumeRequest
{
$handler = $this->handler;
$handler($request->getMessage());
return $request;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.