Don't use global variables

This commit is contained in:
Pierre Rudloff 2016-07-22 14:43:50 +02:00
parent cf805740fe
commit 3074595b51
2 changed files with 19 additions and 24 deletions

View file

@ -28,7 +28,7 @@ $container['view'] = function ($c) {
return $view;
};
$controller = new FrontController();
$controller = new FrontController($container);
$container['errorHandler'] = array($controller, 'error');