ServiceProvider.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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\live;
  12. use Pimple\Container;
  13. use Pimple\ServiceProviderInterface;
  14. /**
  15. * Class ServiceProvider.
  16. *
  17. * @author onekb <1@1kb.ren>
  18. */
  19. class ServiceProvider implements ServiceProviderInterface
  20. {
  21. /**
  22. * {@inheritdoc}.
  23. */
  24. public function register(Container $app)
  25. {
  26. $app['live'] = function ($app) {
  27. return new LiveClient($app);
  28. };
  29. }
  30. }