public function resolve(Context
$context): void
{ $this->systemConfigService->
delete(ShopIdProvider::SHOP_ID_SYSTEM_CONFIG_KEY
);
/** @var AppCollection $apps */
$apps =
$this->appRepository->
search(new Criteria(),
$context)->
getEntities();
foreach ($apps as $app) { // Delete app manually, to not inform the app backend about the deactivation
// as the app is still running in the old shop with the same shopId
if ($this->themeLifecycleHandler
) { $this->themeLifecycleHandler->
handleUninstall(new AppDeactivatedEvent($app,
$context));
} $this->appRepository->
delete([['id' =>
$app->
getId()]],
$context);
} }}