ServiceProvider.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace crmeb\services\wechat\groupChat;
  12. use Pimple\Container;
  13. use Pimple\ServiceProviderInterface;
  14. /**
  15. * Class ServiceProvider
  16. * @package crmeb\services\wechat\groupChat
  17. */
  18. class ServiceProvider implements ServiceProviderInterface
  19. {
  20. /**
  21. * @param Container $app
  22. */
  23. public function register(Container $app)
  24. {
  25. $app['external_contact'] = function ($app) {
  26. return new Client($app);
  27. };
  28. }
  29. }