forked from GNUsocial/gnu-social
30 lines
750 B
PHP
30 lines
750 B
PHP
<?php
|
|
|
|
/**
|
|
* @author James Walker <james@status.net>
|
|
* @author Craig Andrews <candrews@integralblue.com>
|
|
* @author Mikael Nordfeldth <mmn@hethane.se>
|
|
*/
|
|
|
|
namespace Component\FreeNetwork\Controller;
|
|
|
|
use App\Core\Controller;
|
|
use App\Core\Event;
|
|
use Component\FreeNetwork\Util\Discovery;
|
|
use Component\FreeNetwork\Util\XrdController;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use XML_XRD;
|
|
|
|
class HostMeta extends XrdController
|
|
{
|
|
protected string $default_mimetype = Discovery::XRD_MIMETYPE;
|
|
|
|
public function setXRD()
|
|
{
|
|
if (Event::handle('StartHostMetaLinks', [&$this->xrd->links])) {
|
|
Event::handle('EndHostMetaLinks', [&$this->xrd->links]);
|
|
}
|
|
}
|
|
}
|