Symfony 2 的 YML 配置文件中的 ~ 是什么意思? [英] What does ~ mean in the YML configuration file in Symfony 2?
本文介绍了Symfony 2 的 YML 配置文件中的 ~ 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Symfony 2 中 YML 配置文件中的 ~ 是什么意思?
What does ~ mean in the YML configuration file in Symfony 2?
例如:
NotBlank: ~
推荐答案
在 Yaml 中,~
表示 null.(来源)
In Yaml, ~
means null. (source)
Symfony 2 中的实际含义取决于您所配置的内容.很可能它意味着使用默认值",或者将在需要放置配置密钥但实际上没有为该密钥配置的地方使用它(如 NotBlank 示例中所示).
The actual meaning in Symfony 2 depends on what you are configuring. Most likely it will mean "use defaults" or it will be used where it is needed to put a configuration key but there is nothing to actually configure for that key (as in the NotBlank example).
这篇关于Symfony 2 的 YML 配置文件中的 ~ 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文