3 define("ROOT", dirname(__DIR__
));
4 define("REFS", getenv("REFPATH") ?
: implode(PATH_SEPARATOR
, glob(ROOT
."/refs/*")));
6 $loader = require __DIR__
. "/../vendor/autoload.php";
7 /* @var $loader \Composer\Autoload\ClassLoader */
8 $loader->add("mdref", ROOT
);
11 use http\Controller\Url
;
12 use http\Controller\Observer\Layout
;
14 use mdref\ExceptionHandler
;
19 $ctl = new Controller
;
20 $ctl->setDependency("baseUrl", new Url
)