69

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

For example:

NotBlank: ~
1
  • This question is similar to: What is the purpose of tilde character ~ in YAML?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented yesterday

1 Answer 1

99

In Yaml, ~ means null.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.