Don't use global variables
This commit is contained in:
parent
cf805740fe
commit
3074595b51
2 changed files with 19 additions and 24 deletions
|
@ -28,7 +28,7 @@ $container['view'] = function ($c) {
|
|||
return $view;
|
||||
};
|
||||
|
||||
$controller = new FrontController();
|
||||
$controller = new FrontController($container);
|
||||
|
||||
$container['errorHandler'] = array($controller, 'error');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue