FlySystem Loader

1.0 version
Maintained

FlySystem Loader

The FlysystemLoader lets you load images using the Flysystem filesystem abstraction layer.

Dependencies

This cache resolver has a soft dependency on OneupFlysystemBundle, which can be installed by executing the following command in your project directory:

1
$ composer require oneup/flysystem-bundle

Note

This command requires that Composer is installed globally, as explained in their installation documentation.

Configuration

Using OneupFlysystemBundle, a basic configuration might look like the following.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# app/config/config.yml

liip_imagine:
    loaders:
        profile_photos:
            flysystem:
                filesystem_service: oneup_flysystem.profile_photos_filesystem
    data_loader: profile_photos

oneup_flysystem:
    adapters:
        profile_photos:
            local:
                directory:  "path/to/profile/photos"

    filesystems:
        profile_photos:
            adapter: profile_photos

Note

The value of filesystem_service must be a service id that returns an instance of League\\Flysystem\\Filesystem.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.