Final Class Yiisoft\RequestProvider\RequestProvider
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Stores request for further consumption by attribute handlers.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| get() | Yiisoft\ |
|
| set() | Yiisoft\ |
Method Details
| public mixed __construct ( \ | ||
| $request | \ |
The request. |
public function __construct(
private ?ServerRequestInterface $request = null,
) {}
| public \ |
public function get(): ServerRequestInterface
{
if ($this->request === null) {
throw new RequestNotSetException();
}
return $this->request;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.