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:
parent
f29d2a4021
commit
47e7adee4b
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user