Pressroom template verwijderd, website naar root van repo
This commit is contained in:
1 parent
2cb6a77425
commit
f3d1c41e91
7620 files changed
-186900
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
---
|
||||
layout: default
|
||||
permalink: /adapter/gridfs/
|
||||
title: GridFS Adapter
|
||||
---
|
||||
|
||||
# GridFS Adapter
|
||||
|
||||
## Installation
|
||||
|
||||
~~~ bash
|
||||
composer require league/flysystem-gridfs
|
||||
~~~
|
||||
|
||||
## Usage
|
||||
|
||||
~~~ php
|
||||
use League\Flysystem\GridFS\GridFSAdapter;
|
||||
use League\Flysystem\Filesystem;
|
||||
|
||||
$mongoClient = new MongoClient();
|
||||
$gridFs = $mongoClient->selectDB('db_name')->getGridFS();
|
||||
|
||||
$adapter = new GridFSAdapter($gridFs);
|
||||
$filesystem = new Filesystem($adapter);
|
||||
~~~
|
||||
Reference in new issue
Block a user