Overview

Namespaces

  • CRUDlex

Classes

  • PasswordReset
  • User
  • UserProvider
  • UserSetup
  • Overview
  • Namespace
  • Class

Class User

The UserInterface implementation for the UserProvider.

CRUDlex\User implements Symfony\Component\Security\Core\User\UserInterface
Namespace: CRUDlex
Located at User.php
Methods summary
public
# __construct( string $usernameField, string $passwordField, string $saltField, CRUDlex\Entity $userEntity, array $roles )

Constructor.

Constructor.

Parameters

$usernameField
the username
$passwordField
the password (hash)
$saltField
the password hash salt
$userEntity
the actual user data
$roles
the roles
public array
# getRoles( )

Gets the roles.

Gets the roles.

Returns

array
the roles
public string
# getPassword( )

Gets the password (hash).

Gets the password (hash).

Returns

string
the password
public string
# getSalt( )

Gets the password hash salt.

Gets the password hash salt.

Returns

string
the salt
public string
# getUsername( )

Gets the username.

Gets the username.

Returns

string
the username
public
# eraseCredentials( )

Should erase some crucial data if needed. But nothing to do here in this implementation.

Should erase some crucial data if needed. But nothing to do here in this implementation.

public array
# getUserData( )

Gets the user data.

Gets the user data.

Returns

array
the user data
Properties summary
protected $usernameField

The CRUDEntity fieldname of the username.

The CRUDEntity fieldname of the username.

#
protected $passwordField

The fieldname of the password (hash).

The fieldname of the password (hash).

#
protected $saltField

The fieldname of the password hash salt.

The fieldname of the password hash salt.

#
CRUDlexUser API API documentation generated by ApiGen