Configuration in Slim Framework is nice and simple: the App's constructor takes a configuration array for the DI container.
He shows how to pass in the configuration as a optional constructor parameter on the main application, including a
settings value containing some of the common options. These include the
displayErrorDetails flag to show/hide detailed error messages and a
logger setup (in his example Monolog). He also shows how to:
- get settings from the configuration
- use a separate file for the configuration
- using a
- combining multiple configuration files
He includes code examples for each of these cases as well as a method for using a non-array structure (like YAML or XML) via the ZendConfig component.