Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的包 config.yml 添加到 app/config/config.yml
我通过进口找到了一种方法。
我想写这个:
imports: - { resource: parameters.yml } - { resource: security.yml } name_of_my_bundle: - { resource: @MyBundle/Resources/Config/config.yml}
但它不起作用......
我应该怎么写?
谢谢
缩进在 yml 中很重要。对于“导入”,您根本不需要指定包名称。
imports: - { resource: parameters.yml } - { resource: security.yml } - { resource: @MyBundle/Resources/Config/config.yml}