ILIAS  trunk Revision v12.0_alpha-33-ge186251a14d
StaticURLConfig.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\StaticURL;
22
25
30{
31 public function get(Config $config): mixed
32 {
33 return match ($config) {
34 Config::BASE_URL => \ILIAS_HTTP_PATH,
35 Config::REWRITE_POSSIBLE => \ilRobotSettings::getInstance()?->robotSupportEnabled() ?? false,
36 Config::SHORTLINK_NAMESPACE => Handler::SHORTLINK_NAMESPACE,
37 Config::STATIC_LINK_ENDPOINT => $this->get(Config::REWRITE_POSSIBLE)
40 Config::ULTRA_SHORT => false,
41 default => null,
42 };
43 }
44
45}
static getInstance()
get singleton instance
A configuration for the setup.
Definition: Config.php:27
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...