public function register(string $name, Type $type) : void
    {
        if (isset($this->instances[$name])) {
            throw DBALException::typeExists($name);
        }

        if ($this->findTypeName($type) !== null) {
            throw DBALException::typeAlreadyRegistered($type);
        }

        $this->instances[$name] = $type;
    }