|
NAMECatalyst::Component::ApplicationAttribute - Moose Role for components which capture the application context. SYNOPSIS package My::Component;
use Moose;
extends 'Catalyst::Component';
with 'Catalyst::Component::ApplicationAttribute';
# Your code here
1;
DESCRIPTIONThis role provides a BUILDARGS method which captures the application context into an attribute. ATTRIBUTES_applicationWeak reference to the application context. METHODSBUILDARGS ($self, $app)BUILDARGS method captures the application context into the "_application" attribute. _applicationReader method for the application context. SEE ALSOCatalyst::Component, Catalyst::Controller. AUTHORSCatalyst Contributors, see Catalyst.pm COPYRIGHTThis library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
|