dev-master
9999999-devFlysystem resolver
MIT
The Requires
The Development Requires
by Orlov Aleksey
1.0.0
1.0.0.0Flysystem resolver
MIT
The Requires
The Development Requires
by Orlov Aleksey
Flysystem resolver
Provides extras functionality around Flysystem like Resolvable filesystem., (*2)
ResolvableFilesystem
is a decorator permitting to resolve objects paths into URLs., (*3)
In order to use it, you have to pass the decorated Filesystem and a Resolver:, (*4)
use SfCod\Filesystem\Resolvable\ResolvableFilesystem; use SfCod\Filesystem\Resolvable\Resolver\LocalUrlResolver; use League\Flysystem\Filesystem; use League\Flysystem\Adapter\Local; $adapter = new Local(__DIR__.'/path/to/root'); $filesystem = new ResolvableFilesystem( new Filesystem($adapter), new LocalUrlResolver() );
Then you can call resolve($key)
:, (*5)
$filesystem->resolve('/foo.png'); // = 'https://...
Currently these resolvers are supported:, (*6)
Flysystem resolver
MIT
Flysystem resolver
MIT