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

@@ -31,13 +31,6 @@ abstract class AbstractGrant implements GrantTypeInterface
{
const SCOPE_DELIMITER_STRING = ' ';
/**
* Grant identifier
*
* @var string
*/
protected $identifier = '';
/**
* Grant responds with
*
@@ -141,14 +134,6 @@ abstract class AbstractGrant implements GrantTypeInterface
$this->refreshTokenTTL = $refreshTokenTTL;
}
/**
* {@inheritdoc}
*/
public function getIdentifier()
{
return $this->identifier;
}
/**
* {@inheritdoc}
*/
@@ -317,7 +302,7 @@ abstract class AbstractGrant implements GrantTypeInterface
{
return (
isset($request->getParsedBody()['grant_type'])
&& $request->getParsedBody()['grant_type'] === $this->identifier
&& $request->getParsedBody()['grant_type'] === $this->getIdentifier()
);
}
}