LegacyBackendUserRegistry

final class \TYPO3\CMS\Core\Security\Authorization\LegacyBackendUserRegistry

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.

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

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|null
On this page