Add server as constructor param

This commit is contained in:
2025-03-14 00:45:04 +01:00
parent bee9457d9d
commit b464b1ac2d

View File

@ -8,10 +8,9 @@ use Psr\Http\Message\ResponseInterface;
class SlotDbClient class SlotDbClient
{ {
private string $server = "http://127.0.0.1:8080";
public function __construct( public function __construct(
private readonly ClientInterface $client private readonly ClientInterface $client,
private readonly string $server,
) )
{ {