Skip to content

Commit 6f34889

Browse files
committed
implement formatResponseForRequest
1 parent 2b5dd81 commit 6f34889

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Collector/Formatter.php

+9
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public function formatRequest(RequestInterface $request)
6565
return $this->formatter->formatRequest($request);
6666
}
6767

68+
public function formatResponseForRequest(ResponseInterface $response, RequestInterface $request)
69+
{
70+
if (method_exists($this->formatter, 'formatResponseForRequest')) {
71+
return $this->formatter->formatResponseForRequest($response, $request);
72+
}
73+
74+
return $this->formatter->formatResponse($response);
75+
}
76+
6877
/**
6978
* {@inheritdoc}
7079
*/

0 commit comments

Comments
 (0)