src/LdapTools/Factory/AttributeConverterFactory.php
public static function register($name, $class)
    {
        if (isset(self::$converterMap[$name])) {
            throw new InvalidArgumentException(
                sprintf('The attribute converter name "%s" is already registered.', $name)
            );
        }

        self::$converterMap[$name] = $class;
    }
public static function register($name, $class)
    {
        if (isset(self::$converterMap[$name])) {
            throw new InvalidArgumentException(
                sprintf('The attribute converter name "%s" is already registered.', $name)
            );
        }

        self::$converterMap[$name] = $class;
    }
public static function register ( $ name , $ class ) { if ( isset ( self :: $ converterMap [ $ name ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The attribute converter name "%s" is already registered.' , $ name ) ) ; } self :: $ converterMap [ $ name ] = $ class ; }
Registers a converter so it can be retrieved by its name.

@param string $name The actual name for the converter in the schema.
@param string $class The fully qualified class name (ie. '\Foo\Bar\Converter')
Registers a converter so it can be retrieved by its name .