Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 383 Bytes

inMemory.md

File metadata and controls

19 lines (13 loc) · 383 Bytes

InMemory

This adapter is useful in test environments where you don't want to depend on external filesystems.

Example

InMemory adapter only takes an array of available files as argument.

<?php

use Gaufrette\Adapter\InMemory;
use Gaufrette\Filesystem;

$adapter = new InMemory(array('my/file' => 'its content'));
$filesystem = new Filesystem($adapter);