mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 07:22:00 +05:30
26 lines
546 B
PHP
26 lines
546 B
PHP
<?php
|
|
namespace api\components\OAuth2\Entities;
|
|
|
|
use League\OAuth2\Server\Entity\SessionEntity as OriginalSessionEntity;
|
|
|
|
class AccessTokenEntity extends \League\OAuth2\Server\Entity\AccessTokenEntity {
|
|
|
|
protected $sessionId;
|
|
|
|
public function getSessionId() {
|
|
return $this->sessionId;
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
* @return static
|
|
*/
|
|
public function setSession(OriginalSessionEntity $session) {
|
|
parent::setSession($session);
|
|
$this->sessionId = $session->getId();
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|