upd: public.index (set AuthSystemDefault as default AuthSystem for api.core.Request)
This commit is contained in:
parent
5eeaa1321f
commit
e33e6714d7
|
@ -2,10 +2,10 @@
|
|||
|
||||
use \router\core\Router;
|
||||
use \database\core\Repo;
|
||||
use \api\core\Request;
|
||||
use \api\core\AuthSystemDefault;
|
||||
use \database\core\DatabaseDriver;
|
||||
|
||||
debug();
|
||||
|
||||
/* (1) Start session */
|
||||
session_start();
|
||||
$_SESSION['PERM'] = ['journalist'];
|
||||
|
@ -13,7 +13,10 @@
|
|||
/* (2) Set default Driver for Repos */
|
||||
Repo::setDriver(DatabaseDriver::get());
|
||||
|
||||
/* (3) launch router */
|
||||
/* (3) Set default AuthSystem */
|
||||
Request::setAuthSystem(new AuthSystemDefault);
|
||||
|
||||
/* (4) launch router */
|
||||
echo "<pre>";
|
||||
$MainRouter = Router::launch($_GET['url']);
|
||||
|
||||
|
|
Loading…
Reference in New Issue