Pressroom template verwijderd, website naar root van repo

This commit is contained in:
2020-03-22 15:30:52 +01:00
parent 2cb6a77425
commit f3d1c41e91
7620 changed files with 0 additions and 186900 deletions

View File

@@ -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);
~~~