Allow custom cookie array in controller

This commit is contained in:
Pierre Rudloff 2017-04-25 23:04:59 +02:00
parent 5e31767140
commit 8aee9054a8
2 changed files with 5 additions and 3 deletions

View file

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