jowy / silex-config-service-provider
Silex Config Service Provider
v1.1.2
2015-04-29 04:59 UTC
Requires
- jowy/silex-cache-service-provider: ~1.0
- pimple/pimple: ~3.0
Requires (Dev)
- symfony/yaml: ~2.6
This package is not auto-updated.
Last update: 2024-10-12 17:17:43 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