ServiceProvider.php 577 B

12345678910111213141516171819202122232425262728
  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\MiniProgram\UniformMessage;
  11. use Pimple\Container;
  12. use Pimple\ServiceProviderInterface;
  13. class ServiceProvider implements ServiceProviderInterface
  14. {
  15. /**
  16. * {@inheritdoc}.
  17. */
  18. public function register(Container $app)
  19. {
  20. $app['uniform_message'] = function ($app) {
  21. return new Client($app);
  22. };
  23. }
  24. }