Add support for HHVM

Addresses #18 

It removes the constants and returns them in the method. We loose the ability to do "MyGrant::GRANT_TYPE", however.
This is the consequence :(.


Le 1 juil. 2014 à 14:45, Daniel Gimenes <notifications@github.com> a écrit :

> In src/ZfrOAuth2/Server/Grant/AuthorizationGrant.php:
> 
> > @@ -164,7 +161,7 @@ public function createTokenResponse(HttpRequest $request, Client $client = null,
> >          // Before generating a refresh token, we must make sure the authorization server supports this grant
> >          $refreshToken = null;
> >  
> > -        if ($this->authorizationServer->hasGrant(RefreshTokenGrant::GRANT_TYPE)) {
> > +        if ($this->authorizationServer->hasGrant('refresh_token')) {
> Meh!
> 
> —
> Reply to this email directly or view it on GitHub.
>