diff --git a/app/core/AccessControl.php b/app/core/AccessControl.php index a416e84..7e6ac4c 100644 --- a/app/core/AccessControl.php +++ b/app/core/AccessControl.php @@ -10,12 +10,15 @@ class AccessControl { $this->user = $user; $this->routes = [ - "index.php" => $this->catcher() + "index.php" => ["catcher", 0] ]; + + + call_user_func_array([$this, "catcher"], [0]); } - private function catcher(): void + private function catcher($level): void { - // ... + echo "hello $level"; } } \ No newline at end of file