Setting CURL option via Service Container for Guzzle
문제
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
)));
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow