The Config Component
Edit this pageWarning: You are browsing the documentation for Symfony 2.5, which is no longer maintained.
Read the updated version of this page for Symfony 6.2 (the current stable version).
The Config Component
The Config component provides several classes to help you find, load, combine, autofill and validate configuration values of any kind, whatever their source may be (YAML, XML, INI files, or for instance a database).
Caution
The IniFileLoader
parses the file contents using the
parse_ini_file function, therefore, you can only set
parameters to string values. To set parameters to other data types
(e.g. boolean, integer, etc), the other loaders are recommended.
Installation
You can install the component in 2 different ways:
- Install it via Composer (
symfony/config
on Packagist); - Use the official Git repository (https://github.com/symfony/Config).