Skip to main content

call_dispatch

Function call_dispatch 

Source
pub fn call_dispatch(
    func_name: &str,
    method: &str,
    params: &Value,
) -> Result<Value>
Expand description

Call a named PHP function with (method, params) arguments.

Used to call the dispatch function registered by the PHP worker script. Returns the PHP function’s return value as a serde_json::Value.

§Errors

Returns error if the function call fails.