Catalyst::Component::ApplicationAttribute - Moose Role for components which capture the application context.


Catalyst-Runtime documentation  | view source Contained in the Catalyst-Runtime distribution.

Index


NAME

Top

Catalyst::Component::ApplicationAttribute - Moose Role for components which capture the application context.

SYNOPSIS

Top

    package My::Component;
    use Moose;
    extends 'Catalyst::Component';
    with 'Catalyst::Component::ApplicationAttribute';

    # Your code here

    1;

DESCRIPTION

Top

This role provides a BUILDARGS method which captures the application context into an attribute.

ATTRIBUTES

Top

_application

Weak reference to the application context.

METHODS

Top

BUILDARGS ($self, $app)

BUILDARGS method captures the application context into the _application attribute.

_application

Reader method for the application context.

SEE ALSO

Top

Catalyst::Component, Catalyst::Controller.

AUTHORS

Top

Catalyst Contributors, see Catalyst.pm

COPYRIGHT

Top


Catalyst-Runtime documentation  | view source Contained in the Catalyst-Runtime distribution.