Catalyst::Component::ApplicationAttribute - Moose Role for components which capture the application
Contents
Attributes
_application
Weak reference to the application context.
Copyright
This library is free software. You can redistribute it and/or modify it under the same terms as Perl
itself.
perl v5.40.0 2024-11-15 Catalyst::Comp...cationAttribute(3pm)
Description
This role provides a BUILDARGS method which captures the application context into an attribute.
Methods
BUILDARGS($self,$app)
BUILDARGS method captures the application context into the "_application" attribute.
_application
Reader method for the application context.
Name
Catalyst::Component::ApplicationAttribute - Moose Role for components which capture the application
context.
See Also
Catalyst::Component, Catalyst::Controller.
Synopsis
package My::Component;
use Moose;
extends 'Catalyst::Component';
with 'Catalyst::Component::ApplicationAttribute';
# Your code here
1;
