summaryrefslogtreecommitdiffstats
path: root/Core/User
diff options
context:
space:
mode:
Diffstat (limited to 'Core/User')
-rw-r--r--Core/User/InMemoryUserProvider.php2
-rw-r--r--Core/User/UserInterface.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Core/User/InMemoryUserProvider.php b/Core/User/InMemoryUserProvider.php
index e87f80c..074c21e 100644
--- a/Core/User/InMemoryUserProvider.php
+++ b/Core/User/InMemoryUserProvider.php
@@ -56,7 +56,7 @@ class InMemoryUserProvider implements UserProviderInterface
public function createUser(UserInterface $user)
{
if (isset($this->users[strtolower($user->getUsername())])) {
- throw new \LogicException('Another user with the same username already exist.');
+ throw new \LogicException('Another user with the same username already exists.');
}
$this->users[strtolower($user->getUsername())] = $user;
diff --git a/Core/User/UserInterface.php b/Core/User/UserInterface.php
index f5bbde2..1b52dab 100644
--- a/Core/User/UserInterface.php
+++ b/Core/User/UserInterface.php
@@ -11,6 +11,8 @@
namespace Symfony\Component\Security\Core\User;
+use Symfony\Component\Security\Core\Role\Role;
+
/**
* Represents the interface that all user classes must implement.
*
@@ -80,8 +82,6 @@ interface UserInterface
*
* This is important if, at any given point, sensitive information like
* the plain-text password is stored on this object.
- *
- * @return void
*/
public function eraseCredentials();
}