SecurityIdentityRetrievalStrategy
class SecurityIdentityRetrievalStrategy implements SecurityIdentityRetrievalStrategyInterface
Strategy for retrieving security identities
Methods
| __construct(RoleHierarchyInterface $roleHierarchy, AuthenticationTrustResolver $authenticationTrustResolver) Constructor | ||
| SecurityIdentityInterface[] | getSecurityIdentities(TokenInterface $token) Retrieves the available security identities for the given token |
Details
__construct(RoleHierarchyInterface $roleHierarchy, AuthenticationTrustResolver $authenticationTrustResolver)
Constructor
Parameters
| RoleHierarchyInterface | $roleHierarchy | |
| AuthenticationTrustResolver | $authenticationTrustResolver |
SecurityIdentityInterface[] getSecurityIdentities(TokenInterface $token)
Retrieves the available security identities for the given token
The order in which the security identities are returned is significant. Typically, security identities should be ordered from most specific to least specific.
Parameters
| TokenInterface | $token |
Return Value
| SecurityIdentityInterface[] | An array of SecurityIdentityInterface implementations |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Security/Acl/Domain/SecurityIdentityRetrievalStrategy.html