diff --git a/README.md b/README.md index 2f425a9..1bfbfe0 100644 --- a/README.md +++ b/README.md @@ -78,12 +78,16 @@ $response = $client->get('/users'); ## Events Handling events. Events are dispatched before and after the request to the remote host. ### Listening To Events -``` xml - - - +```xml + + + ``` +Your event Listener, or Subscriber **MUST** implement GuzzleBundle\Events\GuzzleEventListenerInterface. +Events dispatched are guzzle_bundle.pre_transaction, guzzle_bundle.post_transaction. +The service on the tag, is so that if you have multiple REST endpoints you can define which service a particular listener is interested in. + ## Features ### Symfony Debug Toolbar / Profiler Debug Logs