src/Leevel/Database/Ddd/Meta.php
public static function setDatabaseResolver(?Closure $databaseResolver = null): void
    {
        static::$databaseResolver = $databaseResolver;

        if (null === $databaseResolver) {
            static::$resolveDatabase = null;
        }
    }
public static function setDatabaseResolver(?Closure $databaseResolver = null): void
    {
        static::$databaseResolver = $databaseResolver;

        if (null === $databaseResolver) {
            static::$resolveDatabase = null;
        }
    }
设置数据库管理对象.

@param null|\Closure $databaseResolver