Test commit
This commit is contained in:
parent
0712b7e13d
commit
8daea6434c
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user