Add router to bootstrap

This commit is contained in:
Timothy Warren 2014-05-14 10:46:49 -04:00
parent cc54862f2f
commit 9efe91f326

View File

@ -29,7 +29,11 @@ include BASEPATH . '/vendor/autoload.php';
require BASEPATH . SLEEPY_DIR . '/autoload.php'; require BASEPATH . SLEEPY_DIR . '/autoload.php';
$di = new DiContainer(new DiFactory()); $di = new DiContainer(new DiFactory());
$rf = new RouterFactory();
$di->set('config', new Config()); $di->set('config', new Config());
$di->set('router', $rf->newInstance());
$di->set('input', new Input()); $di->set('input', new Input());
$di->set('output', new Output($di->get('config'), $di->get('input'))); $di->set('output', new Output($di->get('config'), $di->get('input')));