一个问题:可以在symfony的config.yml上使用条件吗?
我有这个:
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
- { resource: "@XXXBundle/Resources/config/services.yml" }
我想要这个:
imports:
if (....) {
- { resource: parameters1.yml }
} else {
- { resource: parameters2.yml }
}
- { resource: security.yml }
- { resource: services.yml }
- { resource: "@XXXBundle/Resources/config/services.yml" }