return $hasher->
computeSignatureHash($user,
$expires);
} private function createLinker(array
$options =
[], array
$extraProperties =
['emailProperty', 'passwordProperty'
]): LoginLinkHandler
{ $options =
array_merge([ 'lifetime' => 600,
'route_name' => 'app_check_login_link_route',
],
$options);
return new LoginLinkHandler($this->router,
$this->userProvider,
new SignatureHasher($this->propertyAccessor,
$extraProperties, 's3cret',
$this->expiredLinkStorage,
$options['max_uses'
] ?? null
),
$options);
}}class TestLoginLinkHandlerUser implements UserInterface
{ public string
$username;
public string
$emailProperty;
public string
$passwordProperty;
public \DateTimeImmutable|string|null
$lastAuthenticatedAt;
public function __construct($username,
$emailProperty,
$passwordProperty,
$lastAuthenticatedAt = null
) {