Add server as constructor param
This commit is contained in:
1 parent
bee9457d9d
commit
b464b1ac2d
1 file changed
+2
-3
@@ -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,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user