Application.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. /*
  8. * This file is part of the overtrue/wechat.
  9. *
  10. * (c) overtrue <i@overtrue.me>
  11. *
  12. * This source file is subject to the MIT license that is bundled
  13. * with this source code in the file LICENSE.
  14. */
  15. namespace ByteDance\MiniProgram;
  16. use ByteDance\Kernel\ServiceContainer;
  17. /**
  18. * Class Application.
  19. *
  20. * @property \ByteDance\MiniProgram\Auth\AccessToken $access_token
  21. * @property \ByteDance\MiniProgram\Auth\Client $auth
  22. * @property \ByteDance\MiniProgram\KVData\Client $kv
  23. * @property \ByteDance\MiniProgram\Encryptor $encryptor
  24. * @property \ByteDance\MiniProgram\QRCode\Client $qrcode
  25. * @property \ByteDance\MiniProgram\Message\Client $message
  26. * @property \ByteDance\MiniProgram\Order\Client $order
  27. */
  28. class Application extends ServiceContainer
  29. {
  30. /**
  31. * @var array
  32. */
  33. protected $providers = [
  34. Auth\ServiceProvider::class,
  35. KVData\ServiceProvider::class,
  36. QRCode\ServiceProvider::class,
  37. Message\ServiceProvider::class,
  38. Order\ServiceProvider::class
  39. ];
  40. /**
  41. * Handle dynamic calls.
  42. *
  43. * @param string $method
  44. * @param array $args
  45. *
  46. * @return mixed
  47. */
  48. public function __call($method, $args)
  49. {
  50. return $this->base->$method(...$args);
  51. }
  52. }