Neos.Neos/Classes/Domain/Service/UserService.php
protected function normalizeRoleIdentifier($roleIdentifier)
    {
        if (strpos($roleIdentifier, ':') === false) {
            $roleIdentifier = 'Neos.Neos:' . $roleIdentifier;
        }
        if (!$this->policyService->hasRole($roleIdentifier)) {
            throw new NoSuchRoleException(sprintf('The role %s does not exist.', $roleIdentifier), 1422540184);
        }

        return $roleIdentifier;
    }
protected function normalizeRoleIdentifier($roleIdentifier)
    {
        if (strpos($roleIdentifier, ':') === false) {
            $roleIdentifier = 'Neos.Neos:' . $roleIdentifier;
        }
        if (!$this->policyService->hasRole($roleIdentifier)) {
            throw new NoSuchRoleException(sprintf('The role %s does not exist.', $roleIdentifier), 1422540184);
        }

        return $roleIdentifier;
    }
protected function normalizeRoleIdentifier ( $ roleIdentifier ) { if ( strpos ( $ roleIdentifier , ':' ) === false ) { $ roleIdentifier = 'Neos.Neos:' . $ roleIdentifier ; } if ( ! $ this -> policyService -> hasRole ( $ roleIdentifier ) ) { throw new NoSuchRoleException ( sprintf ( 'The role %s does not exist.' , $ roleIdentifier ) , 1422540184 ) ; } return $ roleIdentifier ; }
Replaces a role identifier not containing a "." into fully qualified role identifier from the Neos.Neos namespace.

@param string $roleIdentifier
@return string
@throws NoSuchRoleException
Replaces a role identifier not containing a . into fully qualified role identifier from the Neos . Neos namespace .