This repository has been archived on 2023-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
web/app/core/AccessControl.php
2022-02-07 07:14:33 +01:00

24 lines
396 B
PHP

<?php
class AccessControl
{
public User $user;
private array $routes;
public function __construct(User $user)
{
$this->user = $user;
$this->routes = [
"index.php" => ["catcher", 0]
];
call_user_func_array([$this, "catcher"], [0]);
}
private function catcher($level): void
{
echo "hello $level";
}
}