removed some TODO tags
This commit is contained in:
@@ -180,8 +180,6 @@ namespace Documents\Install {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: check
|
||||
|
||||
$context = $this->getDocument()->getContext();
|
||||
$config = $context->getConfig();
|
||||
|
||||
|
||||
@@ -91,8 +91,6 @@ class Context {
|
||||
}
|
||||
|
||||
public function sendCookies(): void {
|
||||
// TODO: what will we do, when there is a domain mismatch? forbid access or just send cookies for the current domain? or should we send a redirect?
|
||||
// $domain = $this->getSettings()->getDomain();
|
||||
$domain = getCurrentHostName();
|
||||
$this->language->sendCookie($domain);
|
||||
$this->session?->sendCookie($domain);
|
||||
|
||||
@@ -41,10 +41,7 @@ class Router {
|
||||
}
|
||||
|
||||
public function run(string $url, array &$pathParams): ?Route {
|
||||
|
||||
// TODO: do we want a global try cache and return status page 500 on any error?
|
||||
$this->requestedUri = $url;
|
||||
|
||||
$url = strtok($url, "?");
|
||||
foreach ($this->routes as $route) {
|
||||
$match = $route->match($url);
|
||||
|
||||
Reference in New Issue
Block a user