ServiceProvider.php 701 B

12345678910111213141516171819202122232425262728293031323334
  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 crmeb\services\wechat\orderShipping;
  11. use Pimple\Container;
  12. use Pimple\ServiceProviderInterface;
  13. /**
  14. * 小程序订单管理
  15. * Class ServiceProvider
  16. * @package crmeb\services\easywechat\orderShipping
  17. */
  18. class ServiceProvider implements ServiceProviderInterface
  19. {
  20. /**
  21. * {@inheritdoc}.
  22. */
  23. public function register(Container $pimple)
  24. {
  25. $pimple['orderShipping'] = function ($pimple) {
  26. return new OrderClient($pimple);
  27. };
  28. }
  29. }