From 3a2b04c419b712f4a729955495d63e223e53497b Mon Sep 17 00:00:00 2001 From: Philipp Magel Date: Wed, 19 Feb 2025 15:11:16 +0100 Subject: [PATCH] added modifications for changed list api * removed unnecessary list method * changed the usage in keys method to get from list --- src/BaseClient.php | 12 ------------ src/Client.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/BaseClient.php b/src/BaseClient.php index 7b28243..e60a7d5 100644 --- a/src/BaseClient.php +++ b/src/BaseClient.php @@ -181,18 +181,6 @@ public function send(string $method, string $path, string $body = ''): ResponseI return $response; } - /** - * @param string $path - * - * @return Response - * @throws InvalidArgumentException - * @throws ClientExceptionInterface - */ - public function list(string $path = ''): Response - { - return $this->responseBuilder->build($this->send('LIST', $path)); - } - /** * @param string $path * diff --git a/src/Client.php b/src/Client.php index c32abfc..2d7660d 100644 --- a/src/Client.php +++ b/src/Client.php @@ -75,7 +75,7 @@ public function buildPath(string $path): string */ public function keys(string $path): Response { - return $this->list($this->buildPath($path)); + return $this->get($this->buildPath($path)); } /**