You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,9 +147,11 @@ The resolver configuration is defined under the "resolver" key and it has two op
147
147
* config: The options passed to the class. If you use the default curl class, the config are the same than the [curl_setopt PHP function](http://php.net/manual/en/function.curl-setopt.php)
148
148
149
149
```php
150
+
151
+
// CURL
150
152
$config = [
151
153
'resolver' => [
152
-
'class' => 'Embed\\RequestResolvers\\Curl' //The default resolver used
154
+
'class' => 'Embed\\RequestResolvers\\Curl' //The default resolver used
153
155
154
156
'config' => [
155
157
CURLOPT_MAXREDIRS => 20,
@@ -164,6 +166,18 @@ $config = [
164
166
]
165
167
]
166
168
];
169
+
170
+
// Guzzle (5.x)
171
+
$config = [
172
+
'resolver' => [
173
+
'class' => 'Embed\\RequestResolvers\\Guzzle', // Guzzle resolver used
174
+
175
+
'config' => [
176
+
// optional: if you need to use your custom Guzzle instance
0 commit comments