4

我有这个配置:

liip_imagine:
    resolvers:
        default:
            web_path: ~

    filter_sets:
        cache: ~
        subitem_in_category: 
            path: ~  ///how to change the default path where the images are saved?
            filters:
                my_custom_filter: { }
                relative_resize: { heighten: 210 }

我试图更改保存图像的目录的名称,但我得到了

InvalidConfigurationException:“liip_imagine.filter_sets.subitem_in_category”下无法识别的选项“路径”

我读过这个:https ://github.com/liip/LiipImagineBundle/blob/master/Resources/doc/configuration.md

4

1 回答 1

1

前段时间,由于组件依赖性设计不佳,这些功能已被删除。有关这方面的更多动机,请参阅此拉取请求。

对于相同的功能,建议配置多个解析器,如下所述

liip_imagine:
  resolvers:
      foo:
        web_path:
          cache_prefix: foo
      bar:
        web_path:
          cache_prefix: bar
  filter_sets:
    foo:
      cache: foo
    bar:
      cache: bar

否则,您可以使用捆绑包的旧分支。

希望这有帮助

于 2015-01-08T05:29:26.420 回答