You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
633B

  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\Pay\Combine;
  11. use Pimple\Container;
  12. use Pimple\ServiceProviderInterface;
  13. /**
  14. * Class ServiceProvider
  15. * @package EasyWeChat\OnlineRetailer\Combine
  16. */
  17. class ServiceProvider implements ServiceProviderInterface
  18. {
  19. /**
  20. * {@inheritdoc}.
  21. */
  22. public function register(Container $app)
  23. {
  24. $app['combine'] = function ($app) {
  25. return new Client($app);
  26. };
  27. }
  28. }