示例#1
0
<?php

use Hyla\Config\Conf;
use Hyla\FrontController\FrontController;
use Hyla\ErrorHandler\ErrorHandler;
require_once __DIR__ . '/../src/core/Autoloader/autoloader.php';
try {
    Conf::init();
    FrontController::launch();
} catch (Exception $e) {
    ErrorHandler::handleException($e);
}
示例#2
0
 protected static function init()
 {
     Session::init();
     ErrorHandler::init();
     Router::init();
 }