oziks / config-service-provider
Config service provider for Silex.
dev-master
2013-03-27 11:20 UTC
Requires
- symfony/yaml: ~2.2
This package is not auto-updated.
Last update: 2024-10-26 14:25:29 UTC
README
A config ServiceProvider for Silex with support for yaml.
Parameters
- config.path : Path to the directory containing Yaml configuration files (it can also be an array of paths).
Registering
To enable it, add this dependency to your composer.json
file:
"oziks/config-service-provider": "dev-master"
And enable it in your application:
<?php use Oziks\Provider\ConfigServiceProvider; $app->register(new ConfigServiceProvider(), array( 'config.path' => glob(__DIR__.'/*/Resources/views/') ));