From b464b1ac2d3fa28b1e9d4c46a9f012009a40b174 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Fri, 14 Mar 2025 00:45:04 +0100 Subject: [PATCH] Add server as constructor param --- src/SlotDbClient.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SlotDbClient.php b/src/SlotDbClient.php index c0da8fb..4570f14 100644 --- a/src/SlotDbClient.php +++ b/src/SlotDbClient.php @@ -8,10 +8,9 @@ use Psr\Http\Message\ResponseInterface; class SlotDbClient { - private string $server = "http://127.0.0.1:8080"; - public function __construct( - private readonly ClientInterface $client + private readonly ClientInterface $client, + private readonly string $server, ) {