Created
March 7, 2017 09:26
-
-
Save jenkoian/b2c40bc307d30a4e398935382fb67812 to your computer and use it in GitHub Desktop.
Gaufrette Flysystem example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get legacy gaufrette adapter | |
$legacyGaufretteAdapter = $legacyService->getFilesystem(); | |
// Create a flysystem adapter | |
$flysystemAdapter = new GaufretteAdapter($legacyGaufretteAdapter); | |
// Create your filesystem | |
$fileSystem = new Filesystem($flysystemAdapter); | |
// Do whatever you need to through the Flysystem API |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment