1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 10:33:18 +01:00

Dispatching request.before_send before sending a request with the stream factory

This commit is contained in:
Michael Dowling 2013-03-03 20:44:59 -08:00
parent f29d2a4021
commit 47e7adee4b

View File

@ -40,6 +40,9 @@ class PhpStreamRequestFactory implements StreamRequestFactoryInterface
// Use the new contextParams
$this->params = $params;
// Dispatch the before send event
$request->dispatch('request.before_send', array('request' => $request));
// Add default HTTP context options
$this->createDefaultContext($request);