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')));