Skip to content

Commit aa5cee4

Browse files
committed
Added GridFS filesystem section to README.md
1 parent 108ff3c commit aa5cee4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,36 @@ return [
226226
];
227227
```
228228

229+
### GridFS filesystem
230+
231+
Either run
232+
233+
```bash
234+
$ composer require league/flysystem-gridfs
235+
```
236+
237+
or add
238+
239+
```
240+
"league/flysystem-gridfs": "~1.0"
241+
```
242+
243+
to the `require` section of your `composer.json` file and configure application `components` as follows
244+
245+
```php
246+
return [
247+
//...
248+
'components' => [
249+
//...
250+
'gridFs' => [
251+
'class' => 'creocoder\flysystem\GridFSFilesystem',
252+
'server' => 'mongodb://localhost:27017',
253+
'database' => 'your-database',
254+
],
255+
],
256+
];
257+
```
258+
229259
### Rackspace filesystem
230260

231261
Either run

0 commit comments

Comments
 (0)