ASP4::ConfigLoader - Universal access to the configuration.
use ASP4::ConfigLoader; my $Config = ASP4::ConfigLoader->load(); # $Config is a ASP4::Config object.
This package solves the "How do I get my config?" problem most web applications end up with at some point.
Config data is cached on a per-path basis. Paths are full - i.e. /usr/local/projects/mysite.com/conf/asp4-config.json - so there should never be a clash between two different configurations on the same web server, even if it is running multiple websites as VirtualHosts.
/usr/local/projects/mysite.com/conf/asp4-config.json
Returns a ASP4::Config object.
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=ASP4 to submit bug reports.
Please visit the ASP4 homepage at http://0x31337.org/code/ to see examples of ASP4 in action.
John Drago <jdrago_999@yahoo.com>
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.
To install ASP4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ASP4
CPAN shell
perl -MCPAN -e shell install ASP4
For more information on module installation, please visit the detailed CPAN module installation guide.