Symfony: 4 – Configuration

Application configuration

An application consists of a collection of bundles representing all of the features and capabilities of your application. Each bundle can be customized via configuration files written in YAML, XML or PHP. By default, the main configuration file lives in the app/config/ directory and is called either config.yml, config.xml or config.php depending on which format you prefer:
Each format has its own advantages and disadvantages. The choice of which to use is up to you:

  • YAML: Simple, clean and readable (learn more about YAML in “The YAML Format”)
  • XML: More powerful than YAML at times and supports IDE autocompletion
  • PHP: Very powerful but less readable than standard configuration formats

Leave a Reply