Created
January 6, 2017 20:19
-
-
Save bramus/ddf358720bef0fc17d912004c0d88ca6 to your computer and use it in GitHub Desktop.
Glide StreamResponseFactory
This file contains 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 | |
use League\Flysystem\FilesystemInterface; | |
class StreamResponseFactory implements \League\Glide\Responses\ResponseFactoryInterface { | |
public function create(FilesystemInterface $cache, $path) { | |
return $cache->readStream($path); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment