Added getEventEmitter method to abstractserver

This commit is contained in:
Alex Bilbie 2014-07-11 18:18:41 +01:00
parent 0a3215be8e
commit 48dea185d8

View File

@ -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;
}