Skip to content

Susina Configuration Builder

Susina Configuration Builder is a library to load and build configuration objects or arrays. It's based on Symfony Config and it's inspired on Propel configuration sub-system.


Building a configuration is a three-step process:

  1. load the parameters from some configuration files
  2. process the loaded parameters to normalize and validate them
  3. return an array of cleaned parameters or a configuration object

Note

The configuration builder returns an instance of Dflydev\DotAccessData\Data by default.

Please, see https://github.com/dflydev/dflydev-dot-access-data repository for further information.

We ship loaders for the following file formats:

The Configuration Builder can populate any object whose constructor, or any other initialize method, takes an array as a parameter.