Add router to bootstrap
This commit is contained in:
parent
cc54862f2f
commit
9efe91f326
@ -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')));
|
||||
|
||||
|
Reference in New Issue
Block a user