public function matchFull($permissions, array $authzGroups)
    {
        $privileges = [];

        foreach ($permissions as $permissionAuthzGroup => $permissionPrivileges) {
            $matchingAuthzGroup = $this->getMatchingAuthzGroup($permissionAuthzGroup, $authzGroups);
            
            if (!$matchingAuthzGroup) {
                continue;
            }
            
            $privileges = $this->addAuthzGroupsToPrivileges($privileges, $permissionPrivileges, [
                $permissionAuthzGroup, $matchingAuthzGroup
            ]);
        }

        return $privileges;
    }
public function matchFull($permissions, array $authzGroups)
    {
        $privileges = [];

        foreach ($permissions as $permissionAuthzGroup => $permissionPrivileges) {
            $matchingAuthzGroup = $this->getMatchingAuthzGroup($permissionAuthzGroup, $authzGroups);
            
            if (!$matchingAuthzGroup) {
                continue;
            }
            
            $privileges = $this->addAuthzGroupsToPrivileges($privileges, $permissionPrivileges, [
                $permissionAuthzGroup, $matchingAuthzGroup
            ]);
        }

        return $privileges;
    }
public function matchFull ( $ permissions , array $ authzGroups ) { $ privileges = [ ] ; foreach ( $ permissions as $ permissionAuthzGroup => $ permissionPrivileges ) { $ matchingAuthzGroup = $ this -> getMatchingAuthzGroup ( $ permissionAuthzGroup , $ authzGroups ) ; if ( ! $ matchingAuthzGroup ) { continue ; } $ privileges = $ this -> addAuthzGroupsToPrivileges ( $ privileges , $ permissionPrivileges , [ $ permissionAuthzGroup , $ matchingAuthzGroup ] ) ; } return $ privileges ; }
Get a list of privileges for matching authz groups containing more information
Returns an array of objects where the privilege is the key and authzgroups the value

@param array|object $permissions
@param array        $authzGroups
@return array
Get a list of privileges for matching authz groups containing more information Returns an array of objects where the privilege is the key and authzgroups the value