Add mount to README example

This commit is contained in:
adlawson 2015-07-22 16:10:55 +01:00
parent 8e8f09c0d2
commit f6d79f264a

View File

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