mvcDispatcher() public static method

Creates a Dispatcher instance from MVC parameters.
public static mvcDispatcher ( string $module, string $controller, string $action, array $params ) : Dispatcher
$module string Module name.
$controller string Controller name.
$action string Action name.
$params array Parameters.
return Dispatcher
Exemplo n.º 1
0
 public function testIssueCallback()
 {
     $d = Dispatcher::mvcDispatcher('MyModule', 'MyCtrl', 'MyAct', ['test1', 'test2']);
     $d->issueCallback();
 }
Exemplo n.º 2
0
 /**
  * Issues the callback using the MVC dispatcher.
  *
  * @param string $module     Module name.
  * @param string $controller Controller name.
  * @param string $action     Action name.
  * @param array  $params     Parameter list.
  *
  * @return Dispatcher
  */
 private function dispatchMvc($module, $controller, $action, $params)
 {
     return Dispatcher::mvcDispatcher($module, $controller, $action, $params);
 }