Skip to content

Configuration driver for Kohana that uses MongoDB as it's datastore

Notifications You must be signed in to change notification settings

znanja/v_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kohana Configuration Driver for MongoDB datastore

Requirements

v_config has very light requirements:

Loading your configuration

To load your configuration, run the load_configs.sh file in the resources/ folder. This file will read the configuration files using Kohana's list_files method, and load the configuration from those files into the db specified in config/config.php. The file at config/config.php is the only file-based configuration required beyond this point.

Using v_config

To use v_config, add the following in your bootstrap

try {
	Kohana::$config->attach(New Config_MongoDB);
} catch (MongoConnectionException $e) {
	Kohana::$log->add(Kohana::ERROR, "Failed to initlaize Mongo Configuration driver");
}

below your module initialization.

About

Configuration driver for Kohana that uses MongoDB as it's datastore

Resources

Stars

Watchers

Forks

Packages

No packages published