HostMeta.php 647 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types = 1);
  3. /**
  4. * @author James Walker <james@status.net>
  5. * @author Craig Andrews <candrews@integralblue.com>
  6. * @author Mikael Nordfeldth <mmn@hethane.se>
  7. */
  8. namespace Component\FreeNetwork\Controller;
  9. use App\Core\Event;
  10. use Component\FreeNetwork\Util\Discovery;
  11. use Component\FreeNetwork\Util\XrdController;
  12. class HostMeta extends XrdController
  13. {
  14. protected string $default_mimetype = Discovery::JRD_MIMETYPE;
  15. public function setXRD()
  16. {
  17. if (Event::handle('StartHostMetaLinks', [&$this->xrd->links])) {
  18. Event::handle('EndHostMetaLinks', [&$this->xrd->links]);
  19. }
  20. }
  21. }