providers !== []) { foreach ($this->providers as $provider) { try { $this->providerInstances[] = $this->serverContainer->query($provider); } catch (QueryException $e) { $this->logger->error("Could not query resource provider $provider: " . $e->getMessage(), [ 'exception' => $e, ]); } } $this->providers = []; } return $this->providerInstances; } public function registerResourceProvider(string $provider): void { $this->providers[] = $provider; } }