@@ -11,9 +11,9 @@ class Curl implements RequestResolverInterface
11
11
protected $ result ;
12
12
protected $ url ;
13
13
protected $ config = array (
14
- 'user_agent ' => 'Embed PHP Library ' ,
15
- 'max_redirections ' => 20 ,
16
- 'connection_timeout ' => 10 ,
14
+ 'userAgent ' => 'Embed PHP Library ' ,
15
+ 'maxRedirections ' => 20 ,
16
+ 'connectionTimeout ' => 10 ,
17
17
'timeout ' => 10 ,
18
18
);
19
19
@@ -144,16 +144,16 @@ protected function resolve()
144
144
CURLOPT_URL => $ this ->url ,
145
145
CURLOPT_RETURNTRANSFER => true ,
146
146
CURLOPT_FOLLOWLOCATION => true ,
147
- CURLOPT_MAXREDIRS => $ this ->config ['max_redirections ' ],
148
- CURLOPT_CONNECTTIMEOUT => $ this ->config ['connection_timeout ' ],
147
+ CURLOPT_MAXREDIRS => $ this ->config ['maxRedirections ' ],
148
+ CURLOPT_CONNECTTIMEOUT => $ this ->config ['connectionTimeout ' ],
149
149
CURLOPT_TIMEOUT => $ this ->config ['timeout ' ],
150
150
CURLOPT_SSL_VERIFYPEER => false ,
151
151
CURLOPT_SSL_VERIFYHOST => false ,
152
152
CURLOPT_ENCODING => '' ,
153
153
CURLOPT_AUTOREFERER => true ,
154
154
CURLOPT_COOKIEJAR => $ tmpCookies ,
155
155
CURLOPT_COOKIEFILE => $ tmpCookies ,
156
- CURLOPT_USERAGENT => $ this ->config ['user_agent ' ]
156
+ CURLOPT_USERAGENT => $ this ->config ['userAgent ' ]
157
157
));
158
158
159
159
$ this ->content = '' ;
0 commit comments