protected function getRoleIdentifierMap(array $map)
    {
        $rolesFromPolicy = $this->loadRolesFromPolicyFiles();

        foreach ($rolesFromPolicy as $newRoleIdentifier) {
            $map[substr($newRoleIdentifier, strrpos($newRoleIdentifier, ':') + 1)] = $newRoleIdentifier;
        }

        $map['Anonymous'] ='Anonymous';
        $map['Everybody'] = 'Everybody';

        return $map;
    }
protected function getRoleIdentifierMap(array $map)
    {
        $rolesFromPolicy = $this->loadRolesFromPolicyFiles();

        foreach ($rolesFromPolicy as $newRoleIdentifier) {
            $map[substr($newRoleIdentifier, strrpos($newRoleIdentifier, ':') + 1)] = $newRoleIdentifier;
        }

        $map['Anonymous'] ='Anonymous';
        $map['Everybody'] = 'Everybody';

        return $map;
    }
protected function getRoleIdentifierMap ( array $ map ) { $ rolesFromPolicy = $ this -> loadRolesFromPolicyFiles ( ) ; foreach ( $ rolesFromPolicy as $ newRoleIdentifier ) { $ map [ substr ( $ newRoleIdentifier , strrpos ( $ newRoleIdentifier , ':' ) + 1 ) ] = $ newRoleIdentifier ; } $ map [ 'Anonymous' ] = 'Anonymous' ; $ map [ 'Everybody' ] = 'Everybody' ; return $ map ; }
Returns the given array indexed by "old" role identifiers with the
"new" identifiers added as values to their matching index.

@param array $map
@return array
Returns the given array indexed by old role identifiers with the new identifiers added as values to their matching index .