PHP Classes

File: libraries/vendor/league/flysystem/docs/adapter/memory.md

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/league/flysystem/docs/adapter/memory.md   Download  
File: libraries/vendor/league/flysystem/docs/adapter/memory.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 444 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/memory/ title: Memory Adapter

Memory Adapter

This adapter keeps the filesystem completely in memory. This is useful when you need a filesystem, but don't want it persisted.

Installation

composer require league/flysystem-memory

Usage

use League\Flysystem\Filesystem;
use League\Flysystem\Memory\MemoryAdapter;

$filesystem = new Filesystem(new MemoryAdapter());