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