Oneup flysystem和liip想象本地缓存settigns

时间:2016-12-22 08:51:49

标签: php symfony liipimaginebundle flysystem

我有一个项目根目录外的文件夹,其中包含已上传的图像,现在我想通过使用oneup flysystem来存储Liip imag缓存。

config.yml

liip_imagine:
    resolver:
        upload_adapter:
            flysystem:
                filesystem_service: oneup_flysystem.profile_photos_filesystem
                root_url:           "http://images.example.com"
                cache_prefix:       media/cache
                visibility:         public

    filter_sets:
        cache: ~
        thumb:
            quality: 75
            filters:
                thumbnail: { size: [120, 90], mode: outbound }
        large:
            quality: 75
            filters:
                thumbnail: { size: [800, 600], mode: outbound }
    loaders:
        default:
            filesystem:
                data_root: "%upload_file_path%"

oneup_flysystem:
    adapters:
        upload_adapter:
            local:
                directory: "%upload_file_path%"

    filesystems:
        deliva_filesystem:
            adapter: upload_adapter

但它一直给我这个错误: enter image description here

1 个答案:

答案 0 :(得分:0)

虽然捆绑包的配置似乎是一个重大变化,但更新到1.3可以解决问题。