Php 从包中添加配置
我想将我的bundle config.yml添加到app/config/config.yml 我通过进口找到了一种方法 我想写这个:Php 从包中添加配置,php,symfony,bundle,Php,Symfony,Bundle,我想将我的bundle 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 }
name_of_my_bundle:
- { resource: @MyBundle/Resources/Config/config.yml}
但它不起作用
我该怎么写呢
谢谢缩进在yml中很重要。对于“导入”,您根本不需要指定捆绑包名称
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: @MyBundle/Resources/Config/config.yml}
缩进在yml中很重要。对于“导入”,您根本不需要指定捆绑包名称
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: @MyBundle/Resources/Config/config.yml}