Use PHP 5.3 compatible array syntax
This commit is contained in:
parent
10dc3eedbb
commit
2290e37b97
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue