/** @var Connection $connection */
$connection =
$this->
get(\Doctrine\DBAL\Connection::
class);
$sql = "INSERT IGNORE INTO `s_core_config_elements` (`id`, `form_id`, `name`, `value`, `label`, `description`, `type`, `required`, `position`, `scope`)
VALUES (NULL, '0', 'updateWizardStarted', 'b:1;', '', '', 'checkbox', '0', '0', '1');";
$connection->
executeUpdate($sql);
Shopware()->
Container()->
get(\Shopware\Components\CacheManager::
class)->
clearConfigCache();
} 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(),