Added setSession on TokenTypeInterface as per #255

This commit is contained in:
Alex Bilbie 2014-11-21 00:06:17 +00:00
parent cfada388db
commit 76de634f2b

View File

@ -12,6 +12,7 @@
namespace League\OAuth2\Server\TokenType;
use League\OAuth2\Server\AbstractServer;
use League\OAuth2\Server\Entity\SessionEntity;
use Symfony\Component\HttpFoundation\Request;
interface TokenTypeInterface
@ -43,6 +44,12 @@ interface TokenTypeInterface
*/
public function getParam($key);
/**
* @param \League\OAuth2\Server\Entity\SessionEntity $session
* @return self
*/
public function setSession(SessionEntity $session);
/**
* Determine the access token in the authorization header
* @param \Symfony\Component\HttpFoundation\Request $request