Merge pull request #286 from wahler/issue-285

Use PHP 5.3 compatible array syntax
This commit is contained in:
Steve B 2014-03-03 17:15:50 +00:00
commit 515100d0da

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)