Got rid of mystery $identifier class property, moved it to the getIdentifier method

This commit is contained in:
Alex Bilbie
2016-02-12 08:33:59 +00:00
parent ca776e83a2
commit d96f57d27f
5 changed files with 26 additions and 38 deletions

View File

@@ -19,13 +19,6 @@ use Psr\Http\Message\ServerRequestInterface;
*/
class ClientCredentialsGrant extends AbstractGrant
{
/**
* Grant identifier
*
* @var string
*/
protected $identifier = 'client_credentials';
/**
* @inheritdoc
*/
@@ -47,4 +40,12 @@ class ClientCredentialsGrant extends AbstractGrant
return $responseType;
}
/**
* @inheritdoc
*/
public function getIdentifier()
{
return 'client_credentials';
}
}