Catalyst::Component::ApplicationAttribute - Moose Role for components which capture the application context.
package My::Component; use Moose; extends 'Catalyst::Component'; with 'Catalyst::Component::ApplicationAttribute'; # Your code here 1;
This role provides a BUILDARGS method which captures the application context into an attribute.
Weak reference to the application context.
BUILDARGS method captures the application context into the _application attribute.
_application
Reader method for the application context.
Catalyst::Component, Catalyst::Controller.
Catalyst Contributors, see Catalyst.pm
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Runtime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Runtime
CPAN shell
perl -MCPAN -e shell install Catalyst::Runtime
For more information on module installation, please visit the detailed CPAN module installation guide.