if ($dsn === ''
) { $output->
note('Environment variable \'DATABASE_URL\' not defined. Skipping ' .
$this->
getName() . '...'
);
return self::SUCCESS;
} $output->
writeln('Run Post Update'
);
$output->
writeln(''
);
/** @var Kernel $kernel */
$kernel =
$this->container->
get('kernel'
);
$pluginLoader =
$kernel->
getPluginLoader();
try { $containerWithoutPlugins =
$this->
rebootKernelWithoutPlugins();
$context = Context::
createDefaultContext();
$systemConfigService =
$this->container->
get(SystemConfigService::
class);
$oldVersion =
$systemConfigService->
getString(UpdateController::UPDATE_PREVIOUS_VERSION_KEY
);
$newVersion =
$containerWithoutPlugins->
getParameter('kernel.shopware_version'
);
if (!\
is_string($newVersion)) { throw new \
RuntimeException('Container parameter "kernel.shopware_version" needs to be a string'
);
}