Receives the callback data from the Router and issues the callback. Dispatcher works with standard MVC callback, or with a custom class based callback.
Inheritance: use trait Webiny\Component\StdLib\StdObjectTrait
Exemple #1
0
 public function testIssueCallback()
 {
     $d = Dispatcher::mvcDispatcher('MyModule', 'MyCtrl', 'MyAct', ['test1', 'test2']);
     $d->issueCallback();
 }
Exemple #2
0
 /**
  * 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);
 }