ServiceProvider.php 1.2 KB

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