Allow custom cookie array in controller
This commit is contained in:
parent
5e31767140
commit
8aee9054a8
2 changed files with 5 additions and 3 deletions
|
@ -28,7 +28,7 @@ $container['view'] = function ($c) {
|
|||
return $view;
|
||||
};
|
||||
|
||||
$controller = new FrontController($container);
|
||||
$controller = new FrontController($container, null, $_COOKIE);
|
||||
|
||||
$container['errorHandler'] = [$controller, 'error'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue