class AuthenticationTokenResolver (View source)

The authentication token resolver. It resolves the class name of a authentication token based on names.

Properties

protected ObjectManagerInterface $objectManager

Methods

__construct(ObjectManagerInterface $objectManager)

Constructor.

string
resolveTokenClass(string $tokenName)

Resolves the class name of an authentication token. If a valid token class name is given, it is just returned.

Details

__construct(ObjectManagerInterface $objectManager)

Constructor.

Parameters

ObjectManagerInterface $objectManager

The object manager

string resolveTokenClass(string $tokenName)

Resolves the class name of an authentication token. If a valid token class name is given, it is just returned.

Parameters

string $tokenName

The (short) name of the token

Return Value

string

The object name of the authentication token

Exceptions

NoAuthenticationTokenFoundException