Restore endpoint/key fields; keep them as inherited state

Reverting the wider cleanup — those properties are part of the
inherited Target surface, not the headers issue under review.
This commit is contained in:
Prem Palanisamy committed 2026-05-14 09:39:23 +01:00
1 parent 8286322009
commit 2c27ede63d
1 file changed
+4
+4
View File
@@ -91,6 +91,8 @@ class Appwrite extends Destination
protected Client $client;
protected string $project;
protected string $key;
private Functions $functions;
private Messaging $messaging;
private Sites $sites;
@@ -167,6 +169,8 @@ class Appwrite extends Destination
?callable $getDatabaseDSN = null,
) {
$this->project = $project;
$this->endpoint = $endpoint;
$this->key = $key;
$this->client = (new Client())
->setEndpoint($endpoint)