HostMeta.php 750 B

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