$this->flowBuilderActionPersister->
updateActions($flowActions,
$id,
$context,
$defaultLocale);
} $webhooks =
$this->
getWebhooks($manifest,
$flowActions,
$id,
$defaultLocale,
(bool) $app->
getAppSecret());
$context->
scope(Context::SYSTEM_SCOPE,
function DContext
$context) use ($webhooks,
$id): void
{ $this->webhookPersister->
updateWebhooksFromArray($webhooks,
$id,
$context);
});
$flowEvents =
$this->appLoader->
getFlowEvents($app);
if ($flowEvents) { $this->flowEventPersister->
updateEvents($flowEvents,
$id,
$context,
$defaultLocale);
} // we need an app secret to securely communicate with apps
// therefore we only install webhooks, modules, tax providers and payment methods if we have a secret
if ($app->
getAppSecret()) { $this->paymentMethodPersister->
updatePaymentMethods($manifest,
$id,
$defaultLocale,
$context);
$this->taxProviderPersister->
updateTaxProviders($manifest,
$id,
$defaultLocale,
$context);
$this->
updateModules($manifest,
$id,
$defaultLocale,
$context);
}