Trait ResolverAwareTrait
Namespace: Authentication\Identifier\Resolver
Property Summary
-
$resolver protected
Authentication\Identifier\Resolver\ResolverInterface
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(string|array $config): Authentication\Identifier\Resolver\ResolverInterface
Builds a ResolverInterface instance.
Parameters
-
string|array
$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