prod-releaser.php/public_html/index.php

21 lines
465 B
PHP
Executable File

<?php require_once '../autoloader.php';
use \router\core\Router;
use \api\core\Request;
use \api\core\AuthSystemDefault;
use \database\core\Repo;
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($_SERVER['REQUEST_URI']);