tomasz-rup/sf-smartcontext-plugin

此包已被废弃,不再维护。未建议替代包。

symfony 1.x 插件,用于添加 SmartContext 集成

安装: 4

依赖者: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony1-plugin

dev-master 2019-01-01 09:46 UTC

This package is auto-updated.

Last update: 2022-02-01 13:15:40 UTC


README

StyleCI

symfony 1.x 插件,用于添加 SmartContext 集成。

安装

  • 安装插件

    composer require tomasz-rup/sf-smartcontext-plugin
  • 将 sfSmartContextFilter 添加到您的过滤器链中

    rendering: ~
    security:  ~
    
    # insert your own filters here
    smart_context:
      class: sfSmartContextFilter
    
    cache:     ~
    common:    ~
    execution: ~

配置

  • 全局配置

    全局配置在您的应用程序的 app.yml 文件中完成

    all:
      smart_context_plugin:
        site:    http__yoursite.com
        enabled: true
  • 模块级配置

    要在模块 default 中的动作 index 中禁用 SmartContext,请将以下配置添加到您的 apps/frontend/modules/default/config/module.yml 文件中

    all:
      index:
        smart_context:
          enabled: false