src/Maleeby/MRest/Routing.php
private static function _callDispatcher($dispatcherCallback) {
        $dispatcherCallback = $dispatcherCallback[0] !== '\\' ? __NAMESPACE__ . '\\' . $dispatcherCallback : $dispatcherCallback;

        if (!is_callable($dispatcherCallback)) {
            throw new \Exception('Routing dispacher [' . $dispatcherCallback . '] cannot be called.', 500);
        }

        return call_user_func_array($dispatcherCallback, [
            self::$_uri, self::$_config
        ]);
    }
private static function _callDispatcher($dispatcherCallback) {
        $dispatcherCallback = $dispatcherCallback[0] !== '\\' ? __NAMESPACE__ . '\\' . $dispatcherCallback : $dispatcherCallback;

        if (!is_callable($dispatcherCallback)) {
            throw new \Exception('Routing dispacher [' . $dispatcherCallback . '] cannot be called.', 500);
        }

        return call_user_func_array($dispatcherCallback, [
            self::$_uri, self::$_config
        ]);
    }
private static function _callDispatcher ( $ dispatcherCallback ) { $ dispatcherCallback = $ dispatcherCallback [ 0 ] !== '\\' ? __NAMESPACE__ . '\\' . $ dispatcherCallback : $ dispatcherCallback ; if ( ! is_callable ( $ dispatcherCallback ) ) { throw new \ Exception ( 'Routing dispacher [' . $ dispatcherCallback . '] cannot be called.' , 500 ) ; } return call_user_func_array ( $ dispatcherCallback , [ self :: $ _uri , self :: $ _config ] ) ; }
Calls the route dispatcher which is specified in the configuration.

@param string $dispatcherCallback Dispatcher Callback

@return object
@throws \Exception
Calls the route dispatcher which is specified in the configuration .