Log Guzzle in Symfony profiler
- Add this repository to your composer.json:
"repositories": [
...
{ "type": "git", "url": "https://github.com/djgxp/DjgxpGuzzleBundle.git" },
]
- Add the bundle to your composer.json:
composer require djgxp/guzzle-bundle dev-master@dev
- Enable the bundle for all Symfony environments:
// bundles.php
return [
//...
Djgxp\Bundle\GuzzleBundle\DjgxpGuzzleBundle::class => ['all' => true],
];
Works with Guzzle 6
services:
your_guzzle_services_id:
class: GuzzleHttp\Client
tags:
- { name: guzzle.client }