blob: 03cfe6fdef2b3789265763f17eebdcf792eb95a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace WpfTest;
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(); // FIXME: don't hardcode http
}
public function shouldReportTraces(): bool {
return true; // FIXME: don't hardcode
}
}
|