From 767cfe42e23e2dace56b24bf8ed7b38df4583d89 Mon Sep 17 00:00:00 2001 From: Chris Warner Date: Tue, 22 Sep 2015 11:10:25 -0400 Subject: [PATCH 1/2] Updated Readme.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 2f425a9..e31f5d1 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,9 @@ Handling events. Events are dispatched before and after the request to the remo ``` +Your event Listener, or Subscriber should 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 From f3d21423cda1ee040421a56bfbfa0a5f3a848b86 Mon Sep 17 00:00:00 2001 From: Chris Warner Date: Tue, 22 Sep 2015 11:33:06 -0400 Subject: [PATCH 2/2] Updated Readme.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e31f5d1..1bfbfe0 100644 --- a/README.md +++ b/README.md @@ -78,13 +78,14 @@ $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 should implement GuzzleBundle\Events\GuzzleEventListenerInterface. -Events dispatched are guzzle_bundle.pre_transaction, guzzle_bundle.post_transaction. + +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