$this->appRepo->update([['id' => $appId, 'active' => true]], $context); $this->templateStateService->activateAppTemplates($appId, $context); $this->scriptPersister->activateAppScripts($appId, $context); $this->paymentMethodStateService->activatePaymentMethods($appId, $context); $this->ruleConditionPersister->activateConditionScripts($appId, $context); $this->activeAppsLoader->reset(); // manually set active flag to true, so we don't need to re-fetch the app from DB
$app->setActive(true);