code: public function getMiniProgram()
      {
          if (!self::$_miniProgram instanceof Factory)
          {
              self::$_miniProgram = Factory::miniProgram(Yii::$app->params['wechatMiniProgramConfig']);
          }
  
          return self::$_miniProgram;
      }
docs: 获取 EasyWeChat 微信小程序实例
  
  @return Factory