mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +05:30
Added getEventEmitter method to abstractserver
This commit is contained in:
parent
0a3215be8e
commit
48dea185d8
@ -51,7 +51,7 @@ abstract class AbstractServer
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->eventEmitter = $this->setEventEmitter();
|
||||
$this->setEventEmitter();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -72,6 +72,11 @@ abstract class AbstractServer
|
||||
$this->eventEmitter->addListener($eventName, $listener);
|
||||
}
|
||||
|
||||
public function getEventEmitter()
|
||||
{
|
||||
return $this->eventEmitter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Request Object
|
||||
* @param \Symfony\Component\HttpFoundation\Request The Request Object
|
||||
@ -118,7 +123,7 @@ abstract class AbstractServer
|
||||
* @param TokenTypeInterface $tokenType The token type
|
||||
* @return void
|
||||
*/
|
||||
public function setTokenType(TokenTypeInterface $tokenType)
|
||||
public function setIdType(TokenTypeInterface $tokenType)
|
||||
{
|
||||
$this->tokenType = $tokenType;
|
||||
}
|
||||
@ -127,7 +132,7 @@ abstract class AbstractServer
|
||||
* Get the access token type
|
||||
* @return TokenTypeInterface
|
||||
*/
|
||||
public function getTokenType()
|
||||
public function getIdType()
|
||||
{
|
||||
return $this->tokenType;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user