From bb64bcc1c1d2e0624aea4609af77392295403e4b Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 12 Oct 2022 20:55:43 +1300 Subject: [PATCH] Allow cloning a request --- src/Appwrite/Utopia/Request.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Appwrite/Utopia/Request.php b/src/Appwrite/Utopia/Request.php index 0786f65f8b..c5a916bed6 100644 --- a/src/Appwrite/Utopia/Request.php +++ b/src/Appwrite/Utopia/Request.php @@ -27,6 +27,11 @@ class Request extends UtopiaRequest parent::__construct($request); } + public function clone(): Request + { + return new self($this->swoole); + } + public function getSwoole(): SwooleRequest { return $this->swoole;