Application.php 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /*
  3. * This file is part of the overtrue/wechat.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace EasyWeChat\OfficialAccount;
  11. use EasyWeChat\BasicService;
  12. use EasyWeChat\Kernel\ServiceContainer;
  13. /**
  14. * Class Application.
  15. *
  16. * @author overtrue <i@overtrue.me>
  17. *
  18. * @property \EasyWeChat\BasicService\Media\Client $media
  19. * @property \EasyWeChat\BasicService\Url\Client $url
  20. * @property \EasyWeChat\BasicService\QrCode\Client $qrcode
  21. * @property \EasyWeChat\BasicService\Jssdk\Client $jssdk
  22. * @property \EasyWeChat\OfficialAccount\Auth\AccessToken $access_token
  23. * @property \EasyWeChat\OfficialAccount\Server\Guard $server
  24. * @property \EasyWeChat\OfficialAccount\User\UserClient $user
  25. * @property \EasyWeChat\OfficialAccount\User\TagClient $user_tag
  26. * @property \EasyWeChat\OfficialAccount\Menu\Client $menu
  27. * @property \EasyWeChat\OfficialAccount\TemplateMessage\Client $template_message
  28. * @property \EasyWeChat\OfficialAccount\Material\Client $material
  29. * @property \EasyWeChat\OfficialAccount\CustomerService\Client $customer_service
  30. * @property \EasyWeChat\OfficialAccount\CustomerService\SessionClient $customer_service_session
  31. * @property \EasyWeChat\OfficialAccount\Semantic\Client $semantic
  32. * @property \EasyWeChat\OfficialAccount\DataCube\Client $data_cube
  33. * @property \EasyWeChat\OfficialAccount\AutoReply\Client $auto_reply
  34. * @property \EasyWeChat\OfficialAccount\Broadcasting\Client $broadcasting
  35. * @property \EasyWeChat\OfficialAccount\Card\Card $card
  36. * @property \EasyWeChat\OfficialAccount\Device\Client $device
  37. * @property \EasyWeChat\OfficialAccount\ShakeAround\ShakeAround $shake_around
  38. * @property \EasyWeChat\OfficialAccount\POI\Client $poi
  39. * @property \EasyWeChat\OfficialAccount\Store\Client $store
  40. * @property \EasyWeChat\OfficialAccount\Base\Client $base
  41. * @property \EasyWeChat\OfficialAccount\Comment\Client $comment
  42. * @property \EasyWeChat\OfficialAccount\OCR\Client $ocr
  43. * @property \EasyWeChat\OfficialAccount\Goods\Client $goods
  44. * @property \Overtrue\Socialite\Providers\WeChatProvider $oauth
  45. * @property \EasyWeChat\OfficialAccount\WiFi\Client $wifi
  46. * @property \EasyWeChat\OfficialAccount\WiFi\CardClient $wifi_card
  47. * @property \EasyWeChat\OfficialAccount\WiFi\DeviceClient $wifi_device
  48. * @property \EasyWeChat\OfficialAccount\WiFi\ShopClient $wifi_shop
  49. */
  50. class Application extends ServiceContainer
  51. {
  52. /**
  53. * @var array
  54. */
  55. protected $providers = [
  56. Auth\ServiceProvider::class,
  57. Server\ServiceProvider::class,
  58. User\ServiceProvider::class,
  59. OAuth\ServiceProvider::class,
  60. Menu\ServiceProvider::class,
  61. TemplateMessage\ServiceProvider::class,
  62. Material\ServiceProvider::class,
  63. CustomerService\ServiceProvider::class,
  64. Semantic\ServiceProvider::class,
  65. DataCube\ServiceProvider::class,
  66. POI\ServiceProvider::class,
  67. AutoReply\ServiceProvider::class,
  68. Broadcasting\ServiceProvider::class,
  69. Card\ServiceProvider::class,
  70. Device\ServiceProvider::class,
  71. ShakeAround\ServiceProvider::class,
  72. Store\ServiceProvider::class,
  73. Comment\ServiceProvider::class,
  74. Base\ServiceProvider::class,
  75. OCR\ServiceProvider::class,
  76. Goods\ServiceProvider::class,
  77. WiFi\ServiceProvider::class,
  78. // Base services
  79. BasicService\QrCode\ServiceProvider::class,
  80. BasicService\Media\ServiceProvider::class,
  81. BasicService\Url\ServiceProvider::class,
  82. BasicService\Jssdk\ServiceProvider::class,
  83. ];
  84. }