Trait ResolverAwareTrait
Namespace: Authentication\Identifier\Resolver
Property Summary
-
$resolver protected
Authentication\Identifier\Resolver\ResolverInterface|null
Resolver instance.
Method Summary
-
buildResolver() protected
Builds a ResolverInterface instance.
-
getResolver() public
Returns ResolverInterface instance.
-
setResolver() public
Sets ResolverInterface instance.
Method Detail
buildResolver() ¶ protected
buildResolver(array|string $config): Authentication\Identifier\Resolver\ResolverInterface
Builds a ResolverInterface instance.
Parameters
-
array|string
$config Resolver class name or config.
Returns
Authentication\Identifier\Resolver\ResolverInterface
Throws
InvalidArgumentException
When className option is missing or class name does not exist.
RuntimeException
When resolver does not implement ResolverInterface.
getResolver() ¶ public
getResolver(): Authentication\Identifier\Resolver\ResolverInterface
Returns ResolverInterface instance.
Returns
Authentication\Identifier\Resolver\ResolverInterface
Throws
RuntimeException
When resolver has not been set.
setResolver() ¶ public
setResolver(Authentication\Identifier\Resolver\ResolverInterface $resolver): $this
Sets ResolverInterface instance.
Parameters
-
Authentication\Identifier\Resolver\ResolverInterface
$resolver Resolver instance.
Returns
$this
Property Detail
$resolver ¶ protected
Resolver instance.
Type
Authentication\Identifier\Resolver\ResolverInterface|null