diff --git a/api/src/Entity/Endpoint.php b/api/src/Entity/Endpoint.php index d519f46ea..ca9967c13 100644 --- a/api/src/Entity/Endpoint.php +++ b/api/src/Entity/Endpoint.php @@ -447,6 +447,15 @@ public function fromSchema(array $schema, array $default = []) if (array_key_exists('loggingConfig', $schema) === true) { $this->setLoggingConfig($schema['loggingConfig']); } + if (array_key_exists('federationProxies', $schema) === true) { + $this->federationProxies->clear(); + foreach ($schema['federationProxies'] as $federationProxy) { + if ($federationProxy instanceof Gateway === false) { + continue; + } + $this->addFederationProxy($federationProxy); + } + } /*@depricated kept here for lagacy */ $this->setMethod(array_key_exists('method', $schema) ? $schema['method'] : 'GET');