src/MessageResolver.php
public static function register($id, string $className): void
    {
        @trigger_error(sprintf('"%s" is deprecated. Use "registerManifest" instead.', __CLASS__), E_USER_DEPRECATED);

        if ($id instanceof SchemaId) {
            $id = $id->getCurieMajor();
        }

        $nextId = count(self::$curies) + 20000;
        self::$curies[$id] = $nextId;
        self::$classes[$nextId] = $className;
    }
public static function register($id, string $className): void
    {
        @trigger_error(sprintf('"%s" is deprecated. Use "registerManifest" instead.', __CLASS__), E_USER_DEPRECATED);

        if ($id instanceof SchemaId) {
            $id = $id->getCurieMajor();
        }

        $nextId = count(self::$curies) + 20000;
        self::$curies[$id] = $nextId;
        self::$classes[$nextId] = $className;
    }
Adds a single schema id and class name.
@see SchemaId::getCurieMajor

@param SchemaId|string $id
@param string          $className