summaryrefslogtreecommitdiffstats
path: root/Core/User/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'Core/User/User.php')
-rw-r--r--Core/User/User.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Core/User/User.php b/Core/User/User.php
index 86f1acd..bc81f7f 100644
--- a/Core/User/User.php
+++ b/Core/User/User.php
@@ -43,6 +43,11 @@ final class User implements AdvancedUserInterface
$this->roles = $roles;
}
+ public function __toString()
+ {
+ return $this->getUsername();
+ }
+
/**
* {@inheritdoc}
*/