Application.php 723 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace crmeb\services\wechat\MiniPayment;
  3. use crmeb\services\wechat\MiniPayment\Payment\WeChatClient;
  4. use EasyWeChat\MiniProgram\Application as PaymentApplication;
  5. /**
  6. * Class Application.
  7. *
  8. *
  9. * @method WeChatClient createorder(array $params)
  10. * @property \crmeb\services\wechat\MiniPayment\Payment\WeChatClient $orders
  11. */
  12. class Application extends PaymentApplication
  13. {
  14. protected $mini_providers = [
  15. Payment\ServiceProvider::class
  16. ];
  17. public function __construct(array $config = [], array $prepends = [], string $id = null)
  18. {
  19. $this->providers = array_merge($this->mini_providers,$this->providers);
  20. parent::__construct($config, $prepends, $id);
  21. }
  22. }