Maintain local ⭤ remote in sync with automatic AT Protocol parity for Laravel (alpha & unstable)

Fix Atp facade usage to use public() client

Changed files
+6 -6
src
+1 -1
src/Discovery/DiscoveryService.php
··· 29 29 $count = 0; 30 30 31 31 do { 32 - $response = Atp::atproto->sync->listReposByCollection( 32 + $response = Atp::public()->atproto->sync->listReposByCollection( 33 33 collection: $collection, 34 34 limit: min(500, $limit ? $limit - $count : 500), 35 35 cursor: $cursor,
+5 -5
src/Export/ExportService.php
··· 24 24 */ 25 25 public function downloadRepo(string $did, ?string $since = null): RepoExport 26 26 { 27 - $response = Atp::atproto->sync->getRepo($did, $since); 27 + $response = Atp::public()->atproto->sync->getRepo($did, $since); 28 28 $carData = $response->body(); 29 29 30 30 return new RepoExport( ··· 92 92 $cursor = null; 93 93 94 94 do { 95 - $response = Atp::atproto->sync->listBlobs( 95 + $response = Atp::public()->atproto->sync->listBlobs( 96 96 did: $did, 97 97 since: $since, 98 98 limit: 500, ··· 112 112 */ 113 113 public function downloadBlob(string $did, string $cid): string 114 114 { 115 - $response = Atp::atproto->sync->getBlob($did, $cid); 115 + $response = Atp::public()->atproto->sync->getBlob($did, $cid); 116 116 117 117 return $response->body(); 118 118 } ··· 122 122 */ 123 123 public function getLatestCommit(string $did): array 124 124 { 125 - $commit = Atp::atproto->sync->getLatestCommit($did); 125 + $commit = Atp::public()->atproto->sync->getLatestCommit($did); 126 126 127 127 return [ 128 128 'cid' => $commit->cid, ··· 135 135 */ 136 136 public function getRepoStatus(string $did): array 137 137 { 138 - $status = Atp::atproto->sync->getRepoStatus($did); 138 + $status = Atp::public()->atproto->sync->getRepoStatus($did); 139 139 140 140 return $status->toArray(); 141 141 }