From 8daea6434c5a2e531d4160ada909c6acfada6b94 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 7 Feb 2022 07:14:33 +0100 Subject: [PATCH] Test commit --- app/core/AccessControl.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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