diff options
-rw-r--r-- | Core/SecurityContext.php | 14 | ||||
-rw-r--r-- | Core/SecurityContextInterface.php | 9 |
2 files changed, 0 insertions, 23 deletions
diff --git a/Core/SecurityContext.php b/Core/SecurityContext.php index 12eedd1..0623140 100644 --- a/Core/SecurityContext.php +++ b/Core/SecurityContext.php @@ -91,18 +91,4 @@ class SecurityContext implements SecurityContextInterface { $this->token = $token; } - - /** - * Returns the current user, if one exists. - * - * @return mixed Returns either an object which implements __toString(), - * or a primitive string if there is a token, otherwise - * returns null. - */ - public function getUser() - { - if ($this->token) { - return $this->token->getUser(); - } - } } diff --git a/Core/SecurityContextInterface.php b/Core/SecurityContextInterface.php index 2fc27b0..960a4cd 100644 --- a/Core/SecurityContextInterface.php +++ b/Core/SecurityContextInterface.php @@ -39,15 +39,6 @@ interface SecurityContextInterface function setToken(TokenInterface $token = null); /** - * Returns the current user, if one exists. - * - * @return mixed Returns either an object which implements __toString(), - * or a primitive string if there is a token, otherwise - * returns null. - */ - function getUser(); - - /** * Checks if the attributes are granted against the current authentication token and optionally supplied object. * * @param array $attributes |