Environment Type Based Application ConfigurationΒΆ

Use different default configurations based on the environment where the application is deployed:

Deployment type (deployment_type) is one of the options in parameters.yml file, and it is asked during composer install.

1
2
3
4
5
  # config/parameters.yml

  parameters:
      # ...
      deployment_type: null

To start using deployment type, change value deployment_type: <type> in config/parameters.yml and create a config file in config/deployment/config_<type>.yml.

This configuration will have the highest priority.

For example:

1
2
3
4
5
      # config/parameters.yml

      parameters:
          # ...
          deployment_type: local
1
2
3
4
5
      # config/deployment/config_local.yml

      monolog:
          handlers:
              # your additional monolog configuration