<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\Core\System;
use Friendica\DI;
use Friendica\Util\XML;
*/
class ReallySimpleDiscovery extends BaseModule
{
- public static function rawContent(array $parameters = [])
+ protected function rawContent(array $request = [])
{
- header('Content-Type: text/xml');
-
- $xml = null;
- echo XML::fromArray([
+ $content = XML::fromArray([
'rsd' => [
'@attributes' => [
'version' => '1.0',
],
],
],
- ], $xml);
- exit();
+ ]);
+ System::httpExit($content, Response::TYPE_XML);
}
}