Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

yaml

symfony

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

For example:

NotBlank: ~ 
like image 416
Tuong Le Avatar asked Dec 29 '11 12:12

Tuong Le


People also ask

What is YAML file in Symfony?

What is It? The Symfony Yaml component parses YAML strings to convert them to PHP arrays. It is also able to convert PHP arrays to YAML strings. YAML, YAML Ain't Markup Language, is a human friendly data serialization standard for all programming languages. YAML is a great format for your configuration files.

What are YAML configuration files?

YAML is a digestible data serialization language often used to create configuration files with any programming language. Designed for human interaction, YAML is a strict superset of JSON, another data serialization language. But because it's a strict superset, it can do everything that JSON can and more.

What is config YAML used for?

The config. yaml file contains all the configuration settings that are needed to deploy your cluster. From the config. yaml file, you can customize your installation by using various parameters.

How do I access Yml config?

Click the folder icon in the top left of the file editor window to open the file browser sidebar. Click the configuration. yaml file (in the /config/ folder) to load it into the main file editor window.


1 Answers

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

like image 120
Aldo Stracquadanio Avatar answered Sep 30 '22 23:09

Aldo Stracquadanio