djgxp / guzzle-bundle
在 Symfony 分析器中记录 Guzzle 请求
1.0.1
2019-09-03 02:15 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ~6.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0
Requires (Dev)
- phpunit/phpunit: ~5.4
This package is auto-updated.
Last update: 2024-09-29 05:55:25 UTC
README
在 Symfony 分析器中记录 Guzzle
安装
- 将此仓库添加到您的 composer.json 中
"repositories": [
...
{ "type": "git", "url": "https://github.com/djgxp/DjgxpGuzzleBundle.git" },
]
- 将此包添加到您的 composer.json 中
composer require djgxp/guzzle-bundle dev-master@dev
- 为所有 Symfony 环境启用此包
// bundles.php
return [
//...
Djgxp\Bundle\GuzzleBundle\DjgxpGuzzleBundle::class => ['all' => true],
];
兼容性
与 Guzzle 6 兼容
用法
services: your_guzzle_services_id: class: GuzzleHttp\Client tags: - { name: guzzle.client }