{ } public function updateApps(Context
$context): void
{ $extensions =
$this->extensionDataProvider->
getInstalledExtensions($context, true
);
$extensions =
$extensions->
filterByType(ExtensionStruct::EXTENSION_TYPE_APP
);
$outdatedApps =
[];
foreach ($extensions->
getIterator() as $extension) { $id =
$extension->
getLocalId();
if (!
$id) { continue;
} /** @var AppEntity $localApp */
$localApp =
$this->appRepo->
search(new Criteria([$id]),
$context)->
first();
$nextVersion =
$extension->
getLatestVersion();
if (!
$nextVersion) { continue;
} if (version_compare($nextVersion,
$localApp->
getVersion()) > 0
) {