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

24 lines
396 B
PHP
Raw Normal View History

2022-01-30 21:11:38 +00:00
<?php
class AccessControl
{
public User $user;
private array $routes;
public function __construct(User $user)
{
$this->user = $user;
$this->routes = [
2022-02-07 06:14:33 +00:00
"index.php" => ["catcher", 0]
2022-01-30 21:11:38 +00:00
];
2022-02-07 06:14:33 +00:00
call_user_func_array([$this, "catcher"], [0]);
2022-01-30 21:11:38 +00:00
}
2022-02-07 06:14:33 +00:00
private function catcher($level): void
2022-01-30 21:11:38 +00:00
{
2022-02-07 06:14:33 +00:00
echo "hello $level";
2022-01-30 21:11:38 +00:00
}
}