Use constant for event name instead of explicit string. Fixes #563

This commit is contained in:
Alex Bilbie
2016-05-04 08:55:57 +01:00
parent acf262f879
commit cdf43e498e
6 changed files with 15 additions and 16 deletions

View File

@@ -13,6 +13,10 @@ use Psr\Http\Message\ServerRequestInterface;
class RequestEvent extends Event
{
const CLIENT_AUTHENTICATION_FAILED = 'client.authentication.failed';
const USER_AUTHENTICATION_FAILED = 'user.authentication.failed';
const REFRESH_TOKEN_CLIENT_FAILED = 'refresh_token.client.failed';
/**
* @var \Psr\Http\Message\ServerRequestInterface
*/