electricjones / data-manager

Simple data manager for nested data and dot notation access, plus optional extras
MIT License
12 stars 2 forks source link

Configuration from files #25

Closed electricjones closed 9 years ago

electricjones commented 9 years ago

See http://github.com/excellentingenuity/Configurator as an example

Hydrate Manager instances from lists of config files

This will be optional and will use suggests inside composer

electricjones commented 9 years ago

Sample API:

$manager->load('filename');
$manager->load(['filename', 'filename2', 'filename3']);
$manager->load('filename', $optionalDecoder); // if using unsupported format
$finder = new Symfony\Finder\Finder()
$finder->$files->in($dir);

$manager->load($files);
$manager['config']['app']['site']['whatever'];
//or
$manager->get('config.app.site.whatever');
electricjones commented 9 years ago

Merged most of this, opening a ticket for part II