ptut-vhost/public_html/index.php

21 lines
459 B
PHP
Raw Normal View History

2018-02-19 22:01:42 +00:00
<?php require_once '../vendor/autoload.php';
2018-02-17 17:18:58 +00:00
use \router\core\Router;
use \database\core\Repo;
use \api\core\Request;
use \api\core\AuthSystemDefault;
use \database\core\DatabaseDriver;
/* (1) Start session */
session_start();
/* (2) Set default Driver for Repos */
Repo::setDriver(DatabaseDriver::get());
/* (3) Set default AuthSystem */
Request::setAuthSystem(new AuthSystemDefault);
/* (4) launch router */
Router::launch($_GET['url']);