App::Environ::Config - Configuration files processor for App::Environ
use App::Environ; use App::Environ::Config; App::Environ::Config->register( qw( foo.yml bar.json ) ); App::Environ->send_event('initialize'); my $config = App::Environ::Config->instance;
App::Environ::Config is the configuration files processor for App::Environ. Allows get access to configuration tree from different application components.
The module registers in App::Environ three handlers for following events: initialize, reload and finalize:r.
initialize
reload
finalize:r
The method registers configuration sections.
Gets reference to configuration tree.
You can control configuration file processing using environment variables.
List of directories separated by ":" (colon), in which configuration processor will search files. If the variable not specified, current directory will be used.
Enables or disables variable interpolation in configurations files. Enabled by default.
Enables or disables directive processing in configuration files. Enabled by default.
Enables or disables environment variables exporting to configuration tree. If enabled, environment variables can be accessed by the key ENV from the configuration tree and can be interpolated into other configuration parameters.
ENV
Disabled by default.
App::Environ, Config::Processor
Eugene Ponizovsky, <ponizovsky@gmail.com>
Copyright (c) 2016-2017, Eugene Ponizovsky, <ponizovsky@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install App::Environ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Environ
CPAN shell
perl -MCPAN -e shell install App::Environ
For more information on module installation, please visit the detailed CPAN module installation guide.