Skip to content

Commit

Permalink
Issue CollaboraOnline#56: Rename CoolDiscoveryXmlEndpoint -> Collabor…
Browse files Browse the repository at this point in the history
…aConnection.
  • Loading branch information
donquixote committed Nov 21, 2024
1 parent beaf9d9 commit 14217f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Service to load the discovery.xml from the Collabora server.
*/
class CoolDiscoveryXmlEndpoint {
class CollaboraConnection {

/**
* Constructor.
Expand Down
6 changes: 3 additions & 3 deletions src/Cool/CollaboraDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {}

/**
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 14217f9

Please sign in to comment.