djgxp/guzzle-bundle

在 Symfony 分析器中记录 Guzzle 请求

安装次数: 1,011

依赖者: 0

建议者: 0

安全性: 0

星标: 0

关注者: 0

分支: 1

类型:symfony-bundle

1.0.1 2019-09-03 02:15 UTC

This package is auto-updated.

Last update: 2024-09-29 05:55:25 UTC


README

在 Symfony 分析器中记录 Guzzle

安装

  1. 将此仓库添加到您的 composer.json 中
 "repositories": [
        ...
        { "type": "git", "url": "https://github.com/djgxp/DjgxpGuzzleBundle.git" },
 ]
  1. 将此包添加到您的 composer.json 中

composer require djgxp/guzzle-bundle dev-master@dev

  1. 为所有 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 }