litgroup / http-client-bundle
该包已被弃用且不再维护。未建议替代包。
React http-client 集成到 Symfony2 的包。
v0.1.0
2014-06-30 15:14 UTC
Requires
- php: >=5.4.0
- litgroup/dns-bundle: 0.1.*
- litgroup/event-loop-bundle: 0.3.*
- react/http-client: 0.4.*
- symfony/framework-bundle: ~2.3
Requires (Dev)
- phpunit/phpunit: 4.1.*@stable
This package is not auto-updated.
Last update: 2022-02-01 12:36:26 UTC
README
🚫 (该项目不再维护。)
此包将 React Http Client 集成到 Symfony 2 环境中。
安装
使用 composer 安装 LitGroupHttpClientBundle
"require": { "litgroup/http-client-bundle": "0.1.*" }
在 AppKernel 中注册 LitGroupHttpClientBundle 和相关包
<?php // AppKernel.php use Symfony\Component\HttpKernel\Kernel; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ // ... new LitGroup\Bundle\EventLoopBundle\LitGroupEventLoopBundle(), new LitGroup\Bundle\DnsBundle\LitGroupDnsBundle(), new LitGroup\Bundle\HttpClientBundle\LitGroupHttpClientBundle(), ]; // ... return $bundles; } // ... }
配置
这次不需要配置。
使用
使用 litgroup_http_client.client
服务接收 React\HttpClient\Client
。
有关更多详细信息,请参阅 React Http Client 库文档。
许可证
详细信息请参阅 Resources/meta/LICENSE
。