NAME
Crop::Config - Configuration management for the Crop framework
VERSION
0.1.26
SYNOPSIS
use Crop::Config;
my $config = Crop::Config->data;
DESCRIPTION
Crop::Config provides configuration data for the Crop framework. It loads, validates, and parses the main configuration XML file, supporting environment-based overrides and schema validation.
CONSTANTS
CONF_PATH Directory containing configuration files. Defaults to
~/.crop
, can be overridden by theCROP_CONFIG
environment variable.CONFIG_FILE Name of the main configuration file (default:
global.xml
).SCHEMA_FILE Name of the schema file for validating the main config (default:
global.xsd
).SCHEMA_ORIGIN URL to the original schema. This is the only constant you MUST set to the actual value.
METHODS
data
my $config = Crop::Config->data;
Returns a hash reference containing all configuration parameters from the config file.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
XML::LibXML =item * Time::Stamp =item * Clone =item * XML::LibXSLT =item * JSON =item * CGI::Cookie =item * CGI::Fast
AUTHORS
Euvgenio (Core Developer)
Alex (Contributor)
COPYRIGHT AND LICENSE
Apache 2.0