2017 © Pedro Peláez
 

symfony-bundle filesystem

Flysystem resolver

image

sfcod/filesystem

Flysystem resolver

  • Wednesday, February 21, 2018
  • by lexxorlov
  • Repository
  • 1 Watchers
  • 7 Stars
  • 470 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 44 % Grown

The README.md

Flysystem Extras

Scrutinizer Code QualityCode Climate, (*1)

Provides extras functionality around Flysystem like Resolvable filesystem., (*2)

Resolvable filesystem

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)

  • LocalUrlResolver

The Versions

21/02 2018

dev-master

9999999-dev

Flysystem resolver

  Sources   Download

MIT

The Requires

 

The Development Requires

by Orlov Aleksey

21/02 2018

1.0.0

1.0.0.0

Flysystem resolver

  Sources   Download

MIT

The Requires

 

The Development Requires

by Orlov Aleksey