21 lines
313 B
PHP
21 lines
313 B
PHP
<?php
|
|
|
|
class AccessControl
|
|
{
|
|
public User $user;
|
|
|
|
private array $routes;
|
|
|
|
public function __construct(User $user)
|
|
{
|
|
$this->user = $user;
|
|
$this->routes = [
|
|
"index.php" => $this->catcher()
|
|
];
|
|
}
|
|
|
|
private function catcher(): void
|
|
{
|
|
// ...
|
|
}
|
|
} |