Download the PHP package digicomp/league-flysystem without Composer
On this page you can find all versions of the php package digicomp/league-flysystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digicomp/league-flysystem
More information about digicomp/league-flysystem
Files in digicomp/league-flysystem
Package league-flysystem
Short Description A factory to create league filesystems in for the Flow framework
License MIT
Homepage https://github.com/digital-competence/DigiComp.League.Flysystem
Informations about the package league-flysystem
DigiComp.League.Flysystem
This package contains a factory for the filesystem abstraction layer written by Frank de Jonge. See http://flysystem.thephpleague.com/
There are two possibilities to use filesystems.
1. To use a filesystem in your project, I suggest you create an interface:
/**
* @method array listFiles(string $path = '', boolean $recursive = false)
* @method array listPaths(string $path = '', boolean $recursive = false)
*/
interface MyFilesystemInterface extends FilesystemInterface {}
And configure it with your `Objects.yaml`:
While your `Settings.yaml` could look like this:
The array used as first parameter for the factory expects an "adapter" and allows a "filesystemConfig" - key and all
constructor arguments needed for the instantiation of the configured adapter.
All other keys will be treated as property setters for the adapter.
The second parameter is a list of plugins, which should be added to your filesystem. Without a package prefix, they
will be searched in `League\Flysystem\Plugin`. If you write something like `AcMe.Package:MyPlugin` the factory will
look for a plugin named `\AcMe\Package\FlysystemPlugin\MyPlugin`.
After that you can Flow let inject your filesystem for you:
/**
* @var AcMe\Package\MyFilesystemInterface
* @Flow\Inject
*/
-
You could use a named Filesystem. Most of the parts above still makes sense, but instead of passing configuration arrays to the factory you might configure it in a Filesystem.yaml and give it a name.
And then in Objects.yaml use use a different factory method:
And: Don't forget to have a lot of fun.
All versions of league-flysystem with dependencies
league/flysystem Version ~1.0
neos/flow Version ~5.3|~6.3
php Version ^7.2