Skip to content

Commit 690f999

Browse files
committed
updated docs with the new guzzle5 imageinfo
1 parent 8ad7166 commit 690f999

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ Like the resolver class, you can provide your own image class (it must implement
196196

197197

198198
```php
199+
//CURL
199200
$config = [
200201
'image' => [
201202
'class' => 'Embed\\ImageInfo\\Curl' //The default imageInfo used
@@ -213,6 +214,17 @@ $config = [
213214
]
214215
]
215216
];
217+
218+
// Guzzle (5.x)
219+
$config = [
220+
'resolver' => [
221+
'class' => 'Embed\\ImageInfo\\Guzzle5',
222+
223+
'config' => [
224+
'client' => $myGuzzleClient,
225+
]
226+
]
227+
];
216228
```
217229

218230
[You can see here](https://github.com/oscarotero/Embed/tree/master/src/ImageInfo) the ImageInfo implementations included.

0 commit comments

Comments
 (0)