public function issueToken(IRequest $request)
    {
        if (!$request->isMethod('post')) {
            throw new InvalidHttpMethodException;
        }

        $grantType = $this->grantTypeResolver->resolve($request);

        return $grantType->grant($request);
    }
public function issueToken(IRequest $request)
    {
        if (!$request->isMethod('post')) {
            throw new InvalidHttpMethodException;
        }

        $grantType = $this->grantTypeResolver->resolve($request);

        return $grantType->grant($request);
    }
public function issueToken ( IRequest $ request ) { if ( ! $ request -> isMethod ( 'post' ) ) { throw new InvalidHttpMethodException ; } $ grantType = $ this -> grantTypeResolver -> resolve ( $ request ) ; return $ grantType -> grant ( $ request ) ; }
Issues access token using grant type from current request

@param IRequest $request

@return \OAuth2\Storage\IAccessToken
@throws \OAuth2\Exception\InvalidHttpMethodException
Issues access token using grant type from current request