[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
@@ -70,14 +70,14 @@ class SearchSubPlugin extends Plugin
|
||||
public function onRouterInitialized(URLMapper $m)
|
||||
{
|
||||
$m->connect('search/:search/subscribe',
|
||||
array('action' => 'searchsub'),
|
||||
array('search' => Router::REGEX_TAG));
|
||||
['action' => 'searchsub'],
|
||||
['search' => Router::REGEX_TAG]);
|
||||
$m->connect('search/:search/unsubscribe',
|
||||
array('action' => 'searchunsub'),
|
||||
array('search' => Router::REGEX_TAG));
|
||||
['action' => 'searchunsub'],
|
||||
['search' => Router::REGEX_TAG]);
|
||||
$m->connect(':nickname/search-subscriptions',
|
||||
array('action' => 'searchsubs'),
|
||||
array('nickname' => Nickname::DISPLAY_FMT));
|
||||
['action' => 'searchsubs'],
|
||||
['nickname' => Nickname::DISPLAY_FMT]);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user