Receives the callback data from the Router and issues the callback.
Dispatcher works with standard MVC callback, or with a custom class based callback.
public function testIssueCallback() { $d = Dispatcher::mvcDispatcher('MyModule', 'MyCtrl', 'MyAct', ['test1', 'test2']); $d->issueCallback(); }
/** * In case of a custom route, we must use the custom dispatcher. * * @param string $className Fully qualified callback class name. * @param string $action Class method name. * @param array $params Parameter list. * * @return Dispatcher */ private function dispatchCustom($className, $action, $params) { return Dispatcher::customDispatcher($className, $action, $params); }