Skip to content

praswicaksono/silex-config-service-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silex Config Service provider

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