Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename identifier to did in Client and HasHttp

+5 -5
+2 -2
src/Client/Client.php
··· 19 19 public function __construct( 20 20 AtpClient $parent, 21 21 SessionManager $sessions, 22 - string $identifier, 22 + string $did, 23 23 ) { 24 24 $this->atp = $parent; 25 25 $this->sessions = $sessions; 26 - $this->identifier = $identifier; 26 + $this->did = $did; 27 27 $this->dpopClient = app(DPoPClient::class); 28 28 } 29 29 }
+3 -3
src/Http/HasHttp.php
··· 13 13 { 14 14 protected SessionManager $sessions; 15 15 16 - protected string $identifier; 16 + protected string $did; 17 17 18 18 protected DPoPClient $dpopClient; 19 19 ··· 26 26 ?array $params = null, 27 27 ?array $body = null 28 28 ): Response { 29 - $session = $this->sessions->ensureValid($this->identifier); 29 + $session = $this->sessions->ensureValid($this->did); 30 30 $url = rtrim($session->pdsEndpoint(), '/').'/xrpc/'.$endpoint; 31 31 32 32 $params = array_filter($params ?? [], fn ($v) => ! is_null($v)); ··· 110 110 */ 111 111 protected function postBlob(string $endpoint, string $data, string $mimeType): Response 112 112 { 113 - $session = $this->sessions->ensureValid($this->identifier); 113 + $session = $this->sessions->ensureValid($this->did); 114 114 $url = rtrim($session->pdsEndpoint(), '/').'/xrpc/'.$endpoint; 115 115 116 116 $response = $this->buildAuthenticatedRequest($session, $url, 'POST')