Add mount to README example

This commit is contained in:
adlawson 2015-07-22 16:10:55 +01:00
parent 8e8f09c0d2
commit f6d79f264a
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ use Vfs\Node\File;
// Create and mount the file system
$fs = FileSystem::factory('vfs://');
$fs->mount();
// Add `/foo` and `/foo/bar.txt`
$foo = new Directory(['bar.txt' => new File('Hello, World!')]);