Exemplo n.º 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);
}
Exemplo n.º 2
0
 protected static function init()
 {
     Session::init();
     ErrorHandler::init();
     Router::init();
 }