ludofleury / GuzzleBundle

Debug your API Calls with a Symfony web profiler for guzzle
http://ludofleury.github.io/GuzzleBundle/
MIT License
82 stars 21 forks source link

Cannot access playbloom_guzzle.client.plugin.* #12

Closed theogravity closed 11 years ago

theogravity commented 11 years ago

Hey there,

In your example under "Add the logger/profiler manually to a Guzzle client", I'm unable to get the service as symfony does not see it as exists. I'm using Symfony 2.3 and Guzzle 3.1.

You have requested a non-existent service "playbloom_guzzle.client.plugin.profiler".

The only steps I've taken was to add your bundle in (it seems to take that as I see the guzzle icon in the debug bar), and add the

playbloom_guzzle: web_profiler: true

item into the config.

I'm attempting to do the manual wrap via

$loggerPlugin = $container->get('playbloom_guzzle.client.plugin.logger'); $client->addSubscriber($loggerPlugin);

If I do

php app/console container:debug --show-private | grep guzzle

I do not see the services defined at all even if I try manually including the services.xml file into my config.

Any ideas?

theogravity commented 11 years ago

Update (still not working as well):

However, I still do not see any requests being logged in the debug bar

theogravity commented 11 years ago

Update #2 (working)

Found I need to wrap the plugin BEFORE I do my get() request. Sorry for the trouble.