Test commit

This commit is contained in:
William 2022-02-07 07:14:33 +01:00
parent 0712b7e13d
commit 8daea6434c

View File

@ -10,12 +10,15 @@ class AccessControl
{ {
$this->user = $user; $this->user = $user;
$this->routes = [ $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";
} }
} }