logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Attributes

_application
       Weak reference to the application context.

Authors

       Catalyst Contributors, see Catalyst.pm

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;

See Also