Final Class Yiisoft\Yii\Middleware\TagRequest
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Psr\ |
| Deprecated since version | Use `TagRequestMiddleware` from `yiisoft/http-middleware` package instead. |
Tags request with a random value that could be later used for identifying it.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| process() | Yiisoft\ |
Method Details
| public \ | ||
| $request | \ |
|
| $handler | \ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
return $handler->handle($request->withAttribute('requestTag', $this->getRequestTag()));
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.