~ 在 Symfony 2 的 YML 配置文件中是什么意思? [英] What does ~ mean in the YML configuration file in Symfony 2?

查看:34
本文介绍了~ 在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆