We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0519d commit 8a01920Copy full SHA for 8a01920
1 file changed
src/BaseRouter.php
@@ -27,11 +27,13 @@ abstract class BaseRouter {
27
private Injector $injector;
28
private string $viewClassName;
29
private bool $routeCompleted;
30
+ protected ?int $errorStatus;
31
32
public function __construct(
33
null|ConfigSection|RouterConfig $routerConfig = null,
34
?Assembly $viewAssembly = null,
35
?Assembly $logicAssembly = null,
36
+ ?int $errorStatus = null,
37
) {
38
if($routerConfig instanceof ConfigSection) {
39
trigger_deprecation(
@@ -52,6 +54,7 @@ public function __construct(
52
54
$this->viewAssembly = $viewAssembly ?? new Assembly();
53
55
$this->logicAssembly = $logicAssembly ?? new Assembly();
56
$this->routeCompleted = false;
57
+ $this->errorStatus = $errorStatus;
58
}
59
60
public function setContainer(Container $container):void {
0 commit comments