Inject the access token object

This commit is contained in:
Alex Bilbie 2014-05-01 14:44:13 +01:00
parent 1183fe80c6
commit b5f02d0739

View File

@ -25,11 +25,18 @@ interface SessionInterface
/**
* Get a session from an access token
* @param string $accessToken The access token
* @param \League\OAuth2\Server\Entity\AccessToken $accessToken The access token
* @return \League\OAuth2\Server\Entity\Session
*/
public function getByAccessToken($accessToken);
/**
* Get a session from an auth code
* @param \League\OAuth2\Server\Entity\AuthCode $authCode The auth code
* @return \League\OAuth2\Server\Entity\Session
*/
public function getByAuthCode($authCode);
/**
* Get a session's scopes
* @param integer $sessionId