Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure recreate support #18

Merged
merged 1 commit into from Apr 27, 2014
Merged

Structure recreate support #18

merged 1 commit into from Apr 27, 2014

Conversation

michael-donat
Copy link
Owner

@milesj in #15 mentioned following:


On a side note, it would be nice to have a method like createStructure() that can easily create nested files and folders.

$vfs->createStructure([
    'folder1' => [
        'file1.txt' => 'contents',
        'file2.php' => '<?php',
        'folder2' => []
    ]
]);

michael-donat added a commit that referenced this pull request Apr 27, 2014
@michael-donat michael-donat merged commit 76c3784 into 1.1.x Apr 27, 2014
@michael-donat michael-donat deleted the 1.1.x-createStructure branch April 27, 2014 14:51
@milesj
Copy link
Contributor

milesj commented Apr 28, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants