Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

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

Merge branch 'refs/heads/dev'

+48 -2
+5
src/Client/AtprotoClient.php
··· 52 52 { 53 53 return AtpClient::class; 54 54 } 55 + 56 + public function root(): AtpClient 57 + { 58 + return $this->atp; 59 + } 55 60 }
+5
src/Client/BskyClient.php
··· 68 68 { 69 69 return AtpClient::class; 70 70 } 71 + 72 + public function root(): AtpClient 73 + { 74 + return $this->atp; 75 + } 71 76 }
+5
src/Client/ChatClient.php
··· 40 40 { 41 41 return AtpClient::class; 42 42 } 43 + 44 + public function root(): AtpClient 45 + { 46 + return $this->atp; 47 + } 43 48 }
+5
src/Client/OzoneClient.php
··· 46 46 { 47 47 return AtpClient::class; 48 48 } 49 + 50 + public function root(): AtpClient 51 + { 52 + return $this->atp; 53 + } 49 54 }
+5
src/Client/Public/AtprotoPublicClient.php
··· 30 30 { 31 31 return AtpPublicClient::class; 32 32 } 33 + 34 + public function root(): AtpPublicClient 35 + { 36 + return $this->atp; 37 + } 33 38 }
+5
src/Client/Public/BskyPublicClient.php
··· 36 36 { 37 37 return AtpPublicClient::class; 38 38 } 39 + 40 + public function root(): AtpPublicClient 41 + { 42 + return $this->atp; 43 + } 39 44 }
+1 -1
src/Client/Public/Requests/PublicRequest.php
··· 10 10 11 11 public function __construct($parent) 12 12 { 13 - $this->atp = $parent->atp; 13 + $this->atp = $parent->root(); 14 14 } 15 15 }
+1 -1
src/Client/Requests/Request.php
··· 13 13 14 14 public function __construct($parent) 15 15 { 16 - $this->atp = $parent->atp; 16 + $this->atp = $parent->root(); 17 17 } 18 18 }
+5
src/Concerns/HasDomainExtensions.php
··· 24 24 abstract protected function getRootClientClass(): string; 25 25 26 26 /** 27 + * Get the root client instance. 28 + */ 29 + abstract public function root(): object; 30 + 31 + /** 27 32 * Resolve a domain extension instance. 28 33 */ 29 34 protected function resolveDomainExtension(string $name): object
+11
src/Concerns/HasExtensions.php
··· 110 110 { 111 111 return static::hasExtension($name); 112 112 } 113 + 114 + /** 115 + * Get the root client instance. 116 + * 117 + * For root clients, this returns itself. 118 + * Domain clients override this to return their parent. 119 + */ 120 + public function root(): static 121 + { 122 + return $this; 123 + } 113 124 }