Setting CURL option via Service Container for Guzzle
Question
I need to set CURLOPT_TCP_NODELAY
CURL option, but the problem is that I don't know how to do it using Service Container of Sf2.
Here is how Guzzle
is injected now:
services:
user.user_manager:
class: Foo\UserBundle\Model\UserManager
arguments:
- @guzzle.client
But I need to add CURLOPT_TCP_NODELAY
as well.
Plain PHP example:
$guzzle = new \Guzzle\Http\Client(null, array(
'curl.options' => array(
'CURLOPT_TCP_NODELAY' => 1
)));
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow