public function updateAction() { $pluginCheck =
new \ShopwarePlugins\SwagUpdate\Components\
PluginCheck($this->container
);
/** @var PluginLicenceService $licenceService */
$licenceService =
$this->
get(\Shopware\Bundle\PluginInstallerBundle\Service\PluginLicenceService::
class);
/** @var AccountManagerService $accountService */
$accountService =
$this->
get(\Shopware\Bundle\PluginInstallerBundle\Service\AccountManagerService::
class);
$request =
new UpdateLicencesRequest( $this->
getVersion(),
$this->
getLocale(),
$accountService->
getDomain(),
$this->
getAccessToken() );
try { $result =
$licenceService->
updateLicences($request);
} catch (Exception
$e) { $this->
handleException($e);