Creates a Dispatcher instance from a class name.
/** * @expectedExceptionMessage The provided callback class * @expectedException \Webiny\Component\Bootstrap\BootstrapException */ public function testCustomDispatcherException() { $class = 'DoesntExist'; Dispatcher::customDispatcher($class, 'MyActAction', []); }
/** * 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); }