MediaWiki master
LocalUserRegistrationProvider.php
Go to the documentation of this file.
1<?php
2
4
7
9
10 public const TYPE = 'local';
11
12 private UserFactory $userFactory;
13
17 public function __construct( UserFactory $userFactory ) {
18 $this->userFactory = $userFactory;
19 }
20
24 public function fetchRegistration( UserIdentity $user ) {
25 // TODO: Factor this out from User::getRegistration to this method (T352871)
26 $user = $this->userFactory->newFromUserIdentity( $user );
27 return $user->getRegistration();
28 }
29}
fetchRegistration(UserIdentity $user)
Get user registration timestamp.string|false|null Registration timestamp, null if not available or fa...
Creates User objects.
Interface for objects representing user identity.