jowy/silex-config-service-provider

Silex Config Service Provider

v1.1.2 2015-04-29 04:59 UTC

This package is not auto-updated.

Last update: 2024-11-09 17:40:30 UTC


README

Provide Configuration Service for Silex

Usage

Installation

For yaml based config

$this->app->register(new ConfigServiceProvider("path/to/config.yml"));

For php array based config

$this->app->register(new ConfigServiceProvider("path/to/config.php"));

Access Config

$app["config"]->get("key/subkey/subsubkey");

License

MIT, see LICENSE