ServiceProvider.php 524 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * This file is part of the apiadmin/tiktok.
  4. */
  5. namespace App\Libs\TikTok\OpenPlatform\VideoData;
  6. use Pimple\Container;
  7. use Pimple\ServiceProviderInterface;
  8. /**
  9. * Class ServiceProvider.
  10. *
  11. * @author zhaoxiang <zhaoxiang051405@gmail.com>
  12. */
  13. class ServiceProvider implements ServiceProviderInterface {
  14. /**
  15. * {@inheritdoc}.
  16. */
  17. public function register(Container $pimple): void {
  18. $pimple['video_data'] = static function($app) {
  19. return new Client($app);
  20. };
  21. }
  22. }