if (empty($version)) { $version =
$this->container->
getParameter('shopware.release.version'
);
if (!\
is_string($version)) { throw new RuntimeException('Parameter shopware.release.version has to be an string'
);
} } $plugins =
$this->container->
get(\Shopware\Bundle\PluginInstallerBundle\Service\PluginLocalService::
class)->
getPluginsForUpdateCheck();
$domain =
$this->container->
get('shopware_plugininstaller.account_manager_service'
)->
getDomain();
$service =
$this->container->
get('shopware_plugininstaller.plugin_service_view'
);
$request =
new UpdateListingRequest('',
$version,
$domain,
$plugins);
/** @var UpdateResultStruct $updates */
$updates =
$service->
getUpdates($request);
$plugins =
$updates->
getPlugins();
$result =
[];
foreach ($plugins as $plugin) { $result[] =
[ $plugin->
getId(),
$plugin->
getTechnicalName(),
$plugin->
getLabel(),
$plugin->
getVersion(),