class AuthenticationProviderResolver (View source)

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

Properties

protected ObjectManagerInterface $objectManager

Methods

__construct(ObjectManagerInterface $objectManager)

Constructor.

string
resolveProviderClass(string $providerName)

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

Details

__construct(ObjectManagerInterface $objectManager)

Constructor.

Parameters

ObjectManagerInterface $objectManager

The object manager

string resolveProviderClass(string $providerName)

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

Parameters

string $providerName

The (short) name of the provider

Return Value

string

The object name of the authentication provider

Exceptions

NoAuthenticationProviderFoundException