Use PHP 5.3 compatible array syntax

This commit is contained in:
Christian Wahler 2014-03-03 18:10:33 +01:00
parent 10dc3eedbb
commit 2290e37b97

View file

@ -24,7 +24,7 @@ class Application extends b8\Application
{
$request =& $this->request;
$route = '/:controller/:action';
$opts = ['controller' => 'Home', 'action' => 'index'];
$opts = array('controller' => 'Home', 'action' => 'index');
$this->router->clearRoutes();
$this->router->register($route, $opts, function (&$route, Response &$response) use (&$request)