/**
* returns a unique, merged array of all role privileges to be added by plugins
*
* @return array<string, list<string>>
*/
private function getAdditionalRolePrivileges(): array
{ $rolePrivileges =
[];
foreach ($this->plugins->
getActives() as $plugin) { $rolePrivileges =
array_replace_recursive($rolePrivileges,
$plugin->
enrichPrivileges());
} return $rolePrivileges;
}}