LegacyBackendUserRegistry
final class \
Remembers the backend user object a principal was built from, so that decisions which still depend on that object can be taken: voters decide on its group data, and module access gates receive the object itself.
The group data is kept as it was when the principal was registered, and only for the role "user", as every other role is granted before group data is consulted. The user object is referenced weakly, so that it is not kept alive by its principal. Entries are bound to the identity of the principal object and live as long as it does: a principal built anew from the same values is not known here.
Internal
Bridge for code that still requires BackendUserAuthentication, to be removed once all decisions are taken on principals.
Table of Contents
Methods
- __construct() : mixed
- getGroupData() : array|null
- The group data of the user object at registration, null for an unregistered principal and for roles other than "user"
- getUser() : BackendUserAuthentication|null
- register() : void
Methods
__construct()
public
__construct() : mixed
getGroupData()
The group data of the user object at registration, null for an unregistered principal and for roles other than "user"
public
getGroupData(Principal $principal) : array|null
Parameters
- $principal : Principal
Return values
array|nullgetUser()
public
getUser(Principal $principal) : BackendUserAuthentication|null
Parameters
- $principal : Principal
Return values
BackendUserAuthentication|nullregister()
public
register(Principal $principal, BackendUserAuthentication $user) : void
Parameters
- $principal : Principal
- $user : BackendUserAuthentication