Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D9 Deprecated function call to getUsername in DatabaseLogBase:221 #4292

Closed
LedzZm opened this issue Dec 30, 2020 · 1 comment
Closed

D9 Deprecated function call to getUsername in DatabaseLogBase:221 #4292

LedzZm opened this issue Dec 30, 2020 · 1 comment

Comments

@LedzZm
Copy link

LedzZm commented Dec 30, 2020

D9 Deprecated function call to getUsername in DatabaseLogBase:221 used by command:LogPollCommand

Problem

The issue appeared in the LogPollCommand but in reality it lies in it's parent "DatabaseLogBase".
In DatabaseLogBase:221 a call to the getUsername function is made. Looking at Drupal\user\Entity\User::getUsername() I see:

in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.

Hope we can integrate the above mentioned change so that, probably one of the most underappreciated commands, is functional again.

  • Drupal version: Spotted in 9.0.9 but should be an issue in earlier versions as well.
  • Console version: 1.9.7.
  • Console Launcher: 1.9.7.
  • Steps to reproduce: Just run the database:log:poll command.

Best Regards,
Marios.

@LOBsTerr
Copy link
Member

Merged #4325

Thank you for contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants