protected function _callback(Controller $controller, $method, $params = [])
    {
        if (!is_callable([$controller, $method])) {
            throw new BadRequestException('The request has been black-holed');
        }

        return call_user_func_array([&$controller, $method], empty($params) ? null : $params);
    }
protected function _callback(Controller $controller, $method, $params = [])
    {
        if (!is_callable([$controller, $method])) {
            throw new BadRequestException('The request has been black-holed');
        }

        return call_user_func_array([&$controller, $method], empty($params) ? null : $params);
    }
protected function _callback ( Controller $ controller , $ method , $ params = [ ] ) { if ( ! is_callable ( [ $ controller , $ method ] ) ) { throw new BadRequestException ( 'The request has been black-holed' ) ; } return call_user_func_array ( [ & $ controller , $ method ] , empty ( $ params ) ? null : $ params ) ; }
Calls a controller callback method

@param \Cake\Controller\Controller $controller Instantiating controller
@param string $method Method to execute
@param array $params Parameters to send to method
@return mixed Controller callback method's response
@throws \Cake\Http\Exception\BadRequestException When a the blackholeCallback is not callable.
Calls a controller callback method