thephpleague / glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.
http://glide.thephpleague.com
MIT License
2.55k stars 198 forks source link

Allow mount identifier, for MountManager of FlySystem library, into prefixes #325

Open ElGigi opened 3 years ago

ElGigi commented 3 years ago

Allow mount identifier, for MountManager of FlySystem library, into prefixes.

$server->setSourcePathPrefix('source://');
$server->setCachePathPrefix('cache://');
ElGigi commented 2 years ago

A little push to allow mount identifier into path without set prefix. Example: get file "img://my/img.jpg"

If i set a cache prefix ; the mount identifier is removed.

Example: set cache prefix "cache://my/dir" and get "img://my/img.jpg" , the cache path will be "cache://my/dir/my/img/jpg"

ElGigi commented 2 years ago

Any news? Thx