[ROUTES] Allow accept-header specification during router creation
Router: - Fix calls to connect, most of them were misusing the function's params URLMapper: - Minor fixes - Documentation - Add support for accept-header specification Plugins/*: - Fix calls to connect
This commit is contained in:
committed by
Diogo Cordeiro
parent
2032c7c1f7
commit
5c0a3102ff
@@ -66,11 +66,11 @@ class MapstractionPlugin extends Plugin
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
$m->connect(':nickname/all/map',
|
||||
array('action' => 'allmap'),
|
||||
array('nickname' => Nickname::DISPLAY_FMT));
|
||||
['action' => 'allmap'],
|
||||
['nickname' => Nickname::DISPLAY_FMT]);
|
||||
$m->connect(':nickname/map',
|
||||
array('action' => 'usermap'),
|
||||
array('nickname' => Nickname::DISPLAY_FMT));
|
||||
['action' => 'usermap'],
|
||||
['nickname' => Nickname::DISPLAY_FMT]);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user