Fixed issue with SimpleRouter::error not firing within group (issue: #551).

- Fixed variable incorrect variable reference in `InputItem` class.
- Added new `Router::addExceptionHandler` method.
- Added parameter types in `Url` class.
- Fixed phpdoc parameter-type for `Request::getHeader`.
This commit is contained in:
Simon Sessingø
2021-05-19 22:00:42 +02:00
parent 0c329e4c5b
commit 4c5f825c97
5 changed files with 12 additions and 8 deletions
+6
View File
@@ -944,4 +944,10 @@ class Router
return $this;
}
public function addExceptionHandler(IExceptionHandler $handler): self
{
$this->exceptionHandlers[] = $handler;
return $this;
}
}