Habari\RestHandler::act_verified_rest PHP Method

act_verified_rest() public method

Used for requests where tokens are provided for verification. Forwards the request to plugin hook registered for the RewriteRule.
See also: act_rest()
public act_verified_rest ( )
    public function act_verified_rest()
    {
        Plugins::act('auth_rest_verify', $this);
        $matched_rule = Controller::get_matched_rule();
        $hookfn = $matched_rule->parameters['hook'];
        $result = call_user_func_array($hookfn, array($matched_rule->named_arg_values));
        if (!$result instanceof RestResponse) {
            $result = new RestResponse($result);
        }
        $result->out();
    }