---
name: "Catalyst::Component::ApplicationAttribute"
section: "3pm"
platform: "linux"
package: "libcatalyst-perl"
version: "5.90132-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::Component::ApplicationAttribute"
---

# Catalyst::Component::ApplicationAttribute(3pm)

Moose Role for components which capture the application context.

## NAME

Catalyst::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;
```

## DESCRIPTION

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

## ATTRIBUTES

### \_application

Weak reference to the application context.

## METHODS

### BUILDARGS ($self, $app)

BUILDARGS method captures the application context into the `"_application"` attribute.

### \_application

Reader method for the application context.

## SEE ALSO

Catalyst::Component, Catalyst::Controller.

## AUTHORS

Catalyst Contributors, see Catalyst.pm

## COPYRIGHT

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
