ServiceProvider.php 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /**
  11. * ServiceProvider.php.
  12. *
  13. * This file is part of the wechat.
  14. *
  15. * (c) overtrue <i@overtrue.me>
  16. *
  17. * This source file is subject to the MIT license that is bundled
  18. * with this source code in the file LICENSE.
  19. */
  20. namespace EasyWeChat\MicroMerchant\Media;
  21. use Pimple\Container;
  22. use Pimple\ServiceProviderInterface;
  23. /**
  24. * Class ServiceProvider.
  25. *
  26. * @author overtrue <i@overtrue.me>
  27. */
  28. class ServiceProvider implements ServiceProviderInterface
  29. {
  30. /**
  31. * {@inheritdoc}.
  32. */
  33. public function register(Container $app)
  34. {
  35. $app['media'] = function ($app) {
  36. return new Client($app);
  37. };
  38. }
  39. }