Expose parameter passed to exceptions

This commit is contained in:
Mathieu Pipet
2015-06-09 17:30:13 +02:00
parent c174b6fc65
commit c84ea1ea62
7 changed files with 22 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class InvalidGrantException extends OAuthException
public function __construct($parameter)
{
$this->parameter = parameter;
parent::__construct(
sprintf(
'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. Check the "%s" parameter.',