9 use const GLOB_ONLYDIR
;
10 use const PATH_SEPARATOR
;
14 define("ROOT", dirname(__DIR__
));
15 define("REFS", getenv("REFPATH") ?
: implode(PATH_SEPARATOR
, glob(ROOT
."/refs/*", GLOB_ONLYDIR
)));
17 ini_set("open_basedir", ROOT
.PATH_SEPARATOR
.REFS
);
19 if (!ini_get("date.timezone")) {
20 date_default_timezone_set("UTC");
23 require_once __DIR__
. "/../vendor/autoload.php";
25 $response = new Response
;
26 $ehandler = new ExceptionHandler($response);
27 $reference = new Reference(explode(PATH_SEPARATOR
, REFS
));
28 $action = new Action($reference, new Request
, $response, new BaseUrl
);