ini_set("open_basedir", ROOT.PATH_SEPARATOR.REFS);
+if (!ini_get("date.timezone")) {
+ date_default_timezone_set("UTC");
+}
+
spl_autoload_register(function($c) {
if (!strncmp($c, "mdref\\", 6)) {
return require ROOT . "/" . strtr($c, "\\", "/") . ".php";
}
});
-new ExceptionHandler;
-
+$response = new Response;
+$ehandler = new ExceptionHandler($response);
$reference = new Reference(explode(PATH_SEPARATOR, REFS));
-$action = new Action($reference, new Request, new Response, new BaseUrl);
+$action = new Action($reference, new Request, $response, new BaseUrl);
$action->handle();