We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f956c3c commit 396faefCopy full SHA for 396faef
src/Loggable/LoggableListener.php
@@ -68,6 +68,8 @@ public function setUsername($username)
68
{
69
if (is_string($username)) {
70
$this->username = $username;
71
+ } elseif (is_object($username) && method_exists($username, 'getUserIdentifier')) {
72
+ $this->username = (string) $username->getUserIdentifier();
73
} elseif (is_object($username) && method_exists($username, 'getUsername')) {
74
$this->username = (string) $username->getUsername();
75
} else {
0 commit comments