From 9efe91f32686be88a3a35edaffd7b11d3a831ce8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 14 May 2014 10:46:49 -0400 Subject: [PATCH] Add router to bootstrap --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index ca3afbf..d31cb63 100755 --- a/index.php +++ b/index.php @@ -29,7 +29,11 @@ include BASEPATH . '/vendor/autoload.php'; require BASEPATH . SLEEPY_DIR . '/autoload.php'; $di = new DiContainer(new DiFactory()); + +$rf = new RouterFactory(); + $di->set('config', new Config()); +$di->set('router', $rf->newInstance()); $di->set('input', new Input()); $di->set('output', new Output($di->get('config'), $di->get('input')));