$source = $context->getSource(); if($source instanceof AdminApiSource && $source->getIntegrationId() === $appInfo->getIntegrationId()){ // allow access to app endpoints from the integration of the same app
continue; }
publicfunctionapp(string $key, ?string $salesChannelId = null) { if(!$this->scriptAppInformation){ thrownew \BadMethodCallException('`config.app()` can only be called from app scripts.'); }