mirror of
https://github.com/adlawson/php-vfs.git
synced 2024-11-24 21:57:40 +00:00
Add mount to README example
This commit is contained in:
parent
8e8f09c0d2
commit
f6d79f264a
@ -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!')]);
|
||||||
|
Loading…
Reference in New Issue
Block a user