Added getBySession

This commit is contained in:
Alex Bilbie 2014-05-01 14:46:22 +01:00
parent 16bdc36ccb
commit 797ed66eda

View File

@ -22,7 +22,14 @@ interface ClientInterface
* @param string $clientSecret The client's secret (default = "null") * @param string $clientSecret The client's secret (default = "null")
* @param string $redirectUri The client's redirect URI (default = "null") * @param string $redirectUri The client's redirect URI (default = "null")
* @param string $grantType The grant type used in the request (default = "null") * @param string $grantType The grant type used in the request (default = "null")
* @return League\OAuth2\Server\Entity\Client|null * @return League\OAuth2\Server\Entity\Client
*/ */
public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null); public function get($clientId, $clientSecret = null, $redirectUri = null, $grantType = null);
/**
* Get the client associated with a session
* @param \League\OAuth2\Server\Entity\Session $session The session
* @return \League\OAuth2\Server\Entity\Client
*/
public function getBySession(Session $session);
} }