protected function getConsumer(&$request)
    {
        $consumer_key = @$request->getParameter("oauth_consumer_key");
        if (!$consumer_key) {
            throw new OAuthException("Invalid consumer key");
        }
        
        $consumer = $this->data_store->lookupConsumer($consumer_key);
        if (!$consumer) {
            throw new OAuthException("Invalid consumer");
        }
        
        return $consumer;
    }
protected function getConsumer(&$request)
    {
        $consumer_key = @$request->getParameter("oauth_consumer_key");
        if (!$consumer_key) {
            throw new OAuthException("Invalid consumer key");
        }
        
        $consumer = $this->data_store->lookupConsumer($consumer_key);
        if (!$consumer) {
            throw new OAuthException("Invalid consumer");
        }
        
        return $consumer;
    }
protected function getConsumer ( & $ request ) { $ consumer_key = @ $ request -> getParameter ( "oauth_consumer_key" ) ; if ( ! $ consumer_key ) { throw new OAuthException ( "Invalid consumer key" ) ; } $ consumer = $ this -> data_store -> lookupConsumer ( $ consumer_key ) ; if ( ! $ consumer ) { throw new OAuthException ( "Invalid consumer" ) ; } return $ consumer ; }
Try to find the consumer for the provided request's consumer key

@param OAuthRequest $request

@throws OAuthException

@return mixed
Try to find the consumer for the provided request s consumer key