67

What does ~ mean in the YML configuration file in Symfony 2?

For example:

NotBlank: ~
fedorqui
  • 275,237
  • 103
  • 548
  • 598
Tuong Le
  • 18,533
  • 11
  • 50
  • 44

1 Answers1

98

In Yaml, ~ means null. (source)

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).

Nolwennig
  • 1,613
  • 24
  • 29
Aldo Stracquadanio
  • 6,167
  • 1
  • 23
  • 34