是否可以将具有资产过滤器定义的服务文件作为 YML 文件包含在 config.yml 中?Assetic 期望 XML 结构...
捆绑/资源/config/services.yml:
assetic.filter.csslint:
class: IOKI\CommonBundle\Assetic\Filter\CssLintFilter
tags:
- { name: assetic.filter, alias: csslint}
配置.yml
assetic:
filters:
csslint:
resource: %kernel.root_dir%/../src/Project/CommonBundle/Resources/config/services.yml