From 86e6a5870eba2948b5c436c2fd0f9005472cfdf5 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 20 Jul 2022 00:53:21 +0300 Subject: [PATCH] Replacing User::getUsername() with User::getUserIdentifier(). --- src/Command/AddInvitesCommand.php | 2 +- src/Command/AddUserCommand.php | 2 +- templates/Account/profile.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Command/AddInvitesCommand.php b/src/Command/AddInvitesCommand.php index 1c30c14..c27a585 100644 --- a/src/Command/AddInvitesCommand.php +++ b/src/Command/AddInvitesCommand.php @@ -44,7 +44,7 @@ class AddInvitesCommand extends Command $this->em->flush(); - $output->writeln(sprintf('%d invites added to \'%s\'.', $number, $user->getUsername())); + $output->writeln(sprintf('%d invites added to \'%s\'.', $number, $user->getUserIdentifier())); return Command::SUCCESS; } diff --git a/src/Command/AddUserCommand.php b/src/Command/AddUserCommand.php index 8f4da3c..eb438ac 100644 --- a/src/Command/AddUserCommand.php +++ b/src/Command/AddUserCommand.php @@ -74,7 +74,7 @@ class AddUserCommand extends Command $this->em->flush(); - $output->writeln(sprintf('User \'%s\' registered, %d invites added.', $user->getUsername(), $invites)); + $output->writeln(sprintf('User \'%s\' registered, %d invites added.', $user->getUserIdentifier(), $invites)); return Command::SUCCESS; } diff --git a/templates/Account/profile.html.twig b/templates/Account/profile.html.twig index 34a0c6d..f2e5748 100644 --- a/templates/Account/profile.html.twig +++ b/templates/Account/profile.html.twig @@ -10,7 +10,7 @@ Username - {{ user.username }} + {{ user.userIdentifier }}