class DefaultPasswordGenerator implements PasswordGeneratorInterface (View source)

Provides a default password generator.

Properties

protected string $allowedChars

The allowed characters for the password.

Methods

string
generate(int $length = 10)

Generates a password.

Details

string generate(int $length = 10)

Generates a password.

Parameters

int $length

(optional) The length of the password.

Return Value

string

The password.