2021-10-18 13:22:02 +01:00
|
|
|
<?php
|
|
|
|
|
2021-12-26 09:48:16 +00:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2021-10-18 13:22:02 +01:00
|
|
|
/**
|
|
|
|
* @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\Event;
|
|
|
|
use Component\FreeNetwork\Util\Discovery;
|
|
|
|
use Component\FreeNetwork\Util\XrdController;
|
|
|
|
|
|
|
|
class HostMeta extends XrdController
|
|
|
|
{
|
2022-01-01 18:58:09 +00:00
|
|
|
protected string $default_mimetype = Discovery::JRD_MIMETYPE;
|
2021-10-18 13:22:02 +01:00
|
|
|
|
|
|
|
public function setXRD()
|
|
|
|
{
|
|
|
|
if (Event::handle('StartHostMetaLinks', [&$this->xrd->links])) {
|
|
|
|
Event::handle('EndHostMetaLinks', [&$this->xrd->links]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|