diff options
| author | winter | 2024-12-07 21:44:42 +0000 |
|---|---|---|
| committer | winter | 2024-12-07 21:44:42 +0000 |
| commit | a84232811dadccf7047424f27340a7f9847bedff (patch) | |
| tree | a6a0823c8b9485b6a5b60ea7ae854f9511a6ae1e /WpfTest/GlobalConfig.php | |
| parent | e1ad307b531c27ec6bfaf8b4d018991b0d4a78f3 (diff) | |
many many changes but actors are loaded from db now
Diffstat (limited to 'WpfTest/GlobalConfig.php')
| -rw-r--r-- | WpfTest/GlobalConfig.php | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/WpfTest/GlobalConfig.php b/WpfTest/GlobalConfig.php index 4bbfe68..03cfe6f 100644 --- a/WpfTest/GlobalConfig.php +++ b/WpfTest/GlobalConfig.php @@ -1,25 +1,16 @@ <?php namespace WpfTest; -class GlobalConfig { - private static GlobalConfig $instance; - - private function __construct() { - - } - - public static function getInstance() { - if (!isset(self::$instance)) { - self::$instance = new self(); - } - return self::$instance; - } - +class GlobalConfig extends Singleton { public function getCanonicalHost(): string { return $_SERVER['HTTP_HOST']; // for now this is fine } public function getBasePath(): string { - return 'http://' . $this->getCanonicalHost(); // fix this? + return 'http://' . $this->getCanonicalHost(); // FIXME: don't hardcode http + } + + public function shouldReportTraces(): bool { + return true; // FIXME: don't hardcode } }
\ No newline at end of file |
