Name
Web::Components::ConfigLoader - Configuration file loading role
Synopsis
use Moo;
with 'Web::Components::ConfigLoader';
Description
Finds and loads the configuration file(s)
Configuration and Environment
Defines the following attributes;
config_file
-
The configuration file is discovered by the loader once the 'home' attribute has been established
has_config_file
-
Predicate
config_home
-
The directory containing the configuration file(s)
has_config_home
-
Predicate
home
-
This is the directory that the loader has chosen to call 'home'
local_config_file
-
The name of the local configuration file which is optionally set in the main configuration file
has_local_config_file
-
Predicate
Subroutines/Methods
Defines the following methods;
BUILDARGS
-
Modifies the method in the base class. Starting with
appclass
it discovershome
, then it discoversconfig_home
andconfig_file
, then it loads the configuration file. If this defineslocal_config_file
that to is loaded
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Web-Components. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <pjfl@cpan.org>
License and Copyright
Copyright (c) 2024 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE