Skip to content

Commit

Permalink
Added setSession on TokenTypeInterface as per #255
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbilbie committed Nov 21, 2014
1 parent cfada38 commit 76de634
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/TokenType/TokenTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -43,6 +44,12 @@ public function setParam($key, $value);
*/
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
Expand Down

0 comments on commit 76de634

Please sign in to comment.