Closed k-timoshenko closed 6 years ago
Up. Need for some extensions, example http://glide.thephpleague.com/1.0/config/source-and-cache/
$server = ServerFactory::create(
[
'source' => Yii::$app->fs,
'cache' => Yii::$app->fs,
'source_path_prefix' => 'source',
'cache_path_prefix' => 'cache',
]
);
receive exception
Argument 1 passed to League\Glide\Server::__construct() must implement interface League\Flysystem\FilesystemInterface, instance of creocoder\flysystem\LocalFilesystem given, called in /path/vendor/league/glide/src/ServerFactory.php on line 53
Thank you! I will change that to getFilesystem
I think that it is better to depend upon originally file system interface instead of component
creocoder\flysystem\Filesystem
. Because this class is Yii2 specific component.