Web::Components::Role - Attributes used when instantiating a Web::Components object
use Moo; with 'Web::Components::Role';
Attributes used when instantiating a Web::Components object
Defines the following attributes;
components
A hash reference of component object references. This is not fully populated until all of the components have been loaded. It can be used by components to discover other dependant components
config
A required object or hash reference
encoding
A non empty simple string that defaults to the value of the configuration attribute of the same name. Used to set input and output decoding / encoding
log
A required object reference of type Logger. The log object should support the log call as well as the usual log level calls
Logger
moniker
A required non numeric simple string. This is the component name. It is used to uniquely identify a component in the component collections held by the role Web::Components::Loader
BUILDARGS
If supplied with an object reference called application the config and log attribute values will be set from it if they are otherwise undefined
application
None
There are no known incompatibilities in this module
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
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2017 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
To install Web::Components, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Components
CPAN shell
perl -MCPAN -e shell install Web::Components
For more information on module installation, please visit the detailed CPAN module installation guide.