Allow cloning a request
This commit is contained in:
parent
597885028a
commit
bb64bcc1c1
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ class Request extends UtopiaRequest
|
||||||
parent::__construct($request);
|
parent::__construct($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function clone(): Request
|
||||||
|
{
|
||||||
|
return new self($this->swoole);
|
||||||
|
}
|
||||||
|
|
||||||
public function getSwoole(): SwooleRequest
|
public function getSwoole(): SwooleRequest
|
||||||
{
|
{
|
||||||
return $this->swoole;
|
return $this->swoole;
|
||||||
|
|
Loading…
Reference in a new issue