From ed080fee2f7c724cc8b0c8e11c7fc01207954f08 Mon Sep 17 00:00:00 2001 From: djklim87 Date: Wed, 13 Aug 2025 12:58:35 +0200 Subject: [PATCH 1/2] Feat: Add acting user info to request ref: 2983 --- src/Network/Request.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Network/Request.php b/src/Network/Request.php index 95c0dd0..3c0acb7 100755 --- a/src/Network/Request.php +++ b/src/Network/Request.php @@ -44,6 +44,7 @@ final class Request { public string $payload; public string $command; public string $httpMethod; + public static $user; public int $version; public ?MySQLTool $mySQLTool; @@ -234,6 +235,7 @@ protected function parseOrFail(array $payload): static { $this->httpMethod = $payload['message']['http_method'] ?? ''; $this->path = $path; $this->format = $format; + $this->user = $payload['user'] ?? ''; $this->endpointBundle = $endpointBundle; $this->mySQLTool = $format === RequestFormat::SQL ? static::detectMySQLTool($payload['message']['body']) : null; $this->payload = (in_array($endpointBundle, [Endpoint::Elastic, Endpoint::Bulk])) From b1d7bea9efed189b515dc751a0f3008e596aa90b Mon Sep 17 00:00:00 2001 From: djklim87 Date: Wed, 13 Aug 2025 21:25:02 +0200 Subject: [PATCH 2/2] Feat: Add acting user info to request ref: 2983 --- src/Network/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Request.php b/src/Network/Request.php index 3c0acb7..39f4c46 100755 --- a/src/Network/Request.php +++ b/src/Network/Request.php @@ -44,7 +44,7 @@ final class Request { public string $payload; public string $command; public string $httpMethod; - public static $user; + public string $user; public int $version; public ?MySQLTool $mySQLTool;