Added missing db init

This commit is contained in:
Alex Bilbie 2013-04-29 11:59:45 +01:00
parent 1696903b8b
commit 14cff9ea44

View File

@ -113,6 +113,8 @@ class Session implements SessionInterface
*/
public function associateRefreshToken($accessTokenId, $refreshToken)
{
$db = \ezcDbInstance::get();
$stmt = $db->prepare('INSERT INTO oauth_session_refresh_tokens (session_access_token_id, refresh_token) VALUE (:accessTokenId, :refreshToken)');
$stmt->bindValue(':accessTokenId', $accessTokenId);
$stmt->bindValue(':refreshToken', $refreshToken);
@ -126,7 +128,7 @@ class Session implements SessionInterface
*/
public function removeRefreshToken($sessionId)
{
throw new \Exception('Not implemented - ' . debug_backtrace()[0]['function']);
}
/**