From 14217f9940570191d976e014a52ccbfac080272b Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Thu, 21 Nov 2024 18:56:02 +0100 Subject: [PATCH] Issue #56: Rename CoolDiscoveryXmlEndpoint -> CollaboraConnection. --- ...CoolDiscoveryXmlEndpoint.php => CollaboraConnection.php} | 2 +- src/Cool/CollaboraDiscovery.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/Cool/{CoolDiscoveryXmlEndpoint.php => CollaboraConnection.php} (99%) diff --git a/src/Cool/CoolDiscoveryXmlEndpoint.php b/src/Cool/CollaboraConnection.php similarity index 99% rename from src/Cool/CoolDiscoveryXmlEndpoint.php rename to src/Cool/CollaboraConnection.php index 0fe0f466..d7f78bb3 100644 --- a/src/Cool/CoolDiscoveryXmlEndpoint.php +++ b/src/Cool/CollaboraConnection.php @@ -26,7 +26,7 @@ /** * Service to load the discovery.xml from the Collabora server. */ -class CoolDiscoveryXmlEndpoint { +class CollaboraConnection { /** * Constructor. diff --git a/src/Cool/CollaboraDiscovery.php b/src/Cool/CollaboraDiscovery.php index a3b06c27..ba0b9468 100644 --- a/src/Cool/CollaboraDiscovery.php +++ b/src/Cool/CollaboraDiscovery.php @@ -22,11 +22,11 @@ class CollaboraDiscovery { /** * Constructor. * - * @param \Drupal\collabora_online\Cool\CoolDiscoveryXmlEndpoint $discoveryXmlEndpoint + * @param \Drupal\collabora_online\Cool\CollaboraConnection $collaboraConnection * Service to load the discovery.xml from the Collabora server. */ public function __construct( - protected readonly CoolDiscoveryXmlEndpoint $discoveryXmlEndpoint, + protected readonly CollaboraConnection $collaboraConnection, ) {} /** @@ -62,7 +62,7 @@ public function getWopiClientURL(string $mimetype = 'text/plain'): string { * Fetching the discovery.xml failed, or the result is not valid xml. */ protected function getParsedXml(): \SimpleXMLElement { - $xml = $this->discoveryXmlEndpoint->getDiscoveryXml(); + $xml = $this->collaboraConnection->getDiscoveryXml(); $discovery_parsed = simplexml_load_string($xml); if (!$discovery_parsed) {