From 48dea185d8f95e62a3dee78a7245bb2f504e1fe4 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 11 Jul 2014 18:18:41 +0100 Subject: [PATCH] Added getEventEmitter method to abstractserver --- src/AbstractServer.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/AbstractServer.php b/src/AbstractServer.php index d3ddcbb4..329d380f 100644 --- a/src/AbstractServer.php +++ b/src/AbstractServer.php @@ -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; }