public static function active(\Closure $active)
    {
        $mocaBonita = self::getInstance();

        register_activation_hook(MbPath::pBaseN(), function () use ($active, $mocaBonita) {
            try {
                MbMigration::enablePdoConnection();
                call_user_func_array($active, [$mocaBonita]);
            } catch (\Exception $e) {
                deactivate_plugins(basename(MbPath::pBaseN()));
                wp_die($e->getMessage());
            }
        });
    }