src/Leevel/Database/Ddd/Meta.php
public static function resolveDatabase(): DatabaseManager
    {
        if (static::$resolveDatabase) {
            return static::$resolveDatabase;
        }

        if (!static::$databaseResolver &&
            static::lazyloadPlaceholder() && !static::$databaseResolver) {
            throw new InvalidArgumentException('Database resolver was not set.');
        }

        return static::$resolveDatabase = call_user_func(static::$databaseResolver);
    }
public static function resolveDatabase(): DatabaseManager
    {
        if (static::$resolveDatabase) {
            return static::$resolveDatabase;
        }

        if (!static::$databaseResolver &&
            static::lazyloadPlaceholder() && !static::$databaseResolver) {
            throw new InvalidArgumentException('Database resolver was not set.');
        }

        return static::$resolveDatabase = call_user_func(static::$databaseResolver);
    }
返回数据库管理对象.

@return \Leevel\Database\Manager