[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
@@ -185,11 +185,13 @@ class ActivitySpamPlugin extends Plugin
|
||||
public function onRouterInitialized(URLMapper $m)
|
||||
{
|
||||
$m->connect('main/train/spam',
|
||||
array('action' => 'train', 'category' => 'spam'));
|
||||
['action' => 'train',
|
||||
'category' => 'spam']);
|
||||
$m->connect('main/train/ham',
|
||||
array('action' => 'train', 'category' => 'ham'));
|
||||
['action' => 'train',
|
||||
'category' => 'ham']);
|
||||
$m->connect('main/spam',
|
||||
array('action' => 'spam'));
|
||||
['action' => 'spam']);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user