#[Package('merchant-services')]
class ExtensionListingLoader{ public function __construct(private readonly StoreClient
$client) { } public function load(ExtensionCollection
$localCollection, Context
$context): ExtensionCollection
{ $this->
addUpdateInformation($localCollection,
$context);
$this->
addStoreInformation($localCollection,
$context);
return $this->
sortCollection($localCollection);
} private function addStoreInformation(ExtensionCollection
$localCollection, Context
$context): void
{ try { $storeExtensions =
$this->client->
listMyExtensions($localCollection,
$context);
} catch (\Throwable
) { return;
}