Add server as constructor param
This commit is contained in:
@ -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