Version 1.2.0
Added getRoutes
to retrieve a full route mapping (#97)
$router = new AltoRouter()
$router->addRoutes(array(
array('GET', '/login', 'show_login_action', 'show_login'),
array('POST', '/login', 'do_login_action', 'do_login'),
array('DELETE', '/logout', 'do_logout_action', 'do_logout'),
));
$routes = $router->getRoutes();
var_export($routes);
Will output:
array (
0 =>
array (
0 => 'GET',
1 => '/login',
2 => 'show_login_action',
3 => 'show_login',
),
1 =>
array (
0 => 'POST',
1 => '/login',
2 => 'do_login_action',
3 => 'do_login',
),
2 =>
array (
0 => 'DELETE',
1 => '/logout',
2 => 'do_logout_action',
3 => 'do_logout',
),
)
Furthermore does this release concerns documentation changes.