Updated example repositories to match updated interfaces

This commit is contained in:
Alex Bilbie
2015-11-13 17:40:53 +00:00
parent b95780022a
commit 96a0c34d41
3 changed files with 17 additions and 43 deletions

View File

@@ -7,15 +7,9 @@ use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
class ScopeRepository implements ScopeRepositoryInterface
{
/**
* Return information about a scope
*
* @param string $scopeIdentifier The scope identifier
* @param string $grantType The grant type used in the request (default = "null")
* @param string $clientId The client sending the request (default = "null")
*
* @return \League\OAuth2\Server\Entities\Interfaces\ScopeEntityInterface
* @inheritdoc
*/
public function get($scopeIdentifier, $grantType = null, $clientId = null)
public function getScopeEntityByIdentifier($scopeIdentifier, $grantType, $clientId = null)
{
$scopes = [
'basic' => [