Class IdentifierFactory
Factory class for creating identifier instances from configuration
Namespace: Authentication\Identifier
Method Summary
-
create() public static
Create an identifier from configuration.
Method Detail
create() ΒΆ public static
create(Authentication\Identifier\IdentifierInterface|array<string, mixed>|string $config, array<string, mixed> $defaultConfig = []): Authentication\Identifier\IdentifierInterface
Create an identifier from configuration.
Parameters
-
Authentication\Identifier\IdentifierInterface|array<string, mixed>|string$config Identifier configuration. Can be a class name string, an instance, or an array with 'className' key.
-
array<string, mixed>$defaultConfig optional Default configuration to merge.
Returns
Authentication\Identifier\IdentifierInterfaceThrows
RuntimeExceptionWhen the identifier class cannot be found or created.