How to do I inject Drupal\user\Entity\User class as dependency? I could not find service name in service list. for example:
$user = User::load($this->currentUser->id()) for this code I want to call like this
$user = $this->user->load(($this->currentUser->id()) when injecting in Controller. How can I achieve this?