+3
-1
src/Client/Public/AtpPublicClient.php
+3
-1
src/Client/Public/AtpPublicClient.php
···
11
11
public BskyPublicClient $bsky;
12
12
public AtprotoPublicClient $atproto;
13
13
14
-
public function __construct(string $serviceUrl)
14
+
public function __construct(string $serviceUrl = null)
15
15
{
16
+
$serviceUrl = $serviceUrl ?? config('client.public.service_url');
17
+
16
18
$this->client = new PublicClient($serviceUrl);
17
19
$this->bsky = new BskyPublicClient($this);
18
20
$this->atproto = new AtprotoPublicClient($this);