// +---------------------------------------------------------------------- namespace crmeb\services\easywechat\broadcast; use Pimple\Container; use Pimple\ServiceProviderInterface; class ServiceProvider implements ServiceProviderInterface { public function register(Container $pimple) { $pimple['miniBroadcast'] = function ($pimple) { return new Client($pimple['mini_program.access_token'], $pimple['config']['mini_program']); }; \EasyWeChat\Core\Http::setDefaultOptions(['timeout' => 0]); } }