Cataly...tribute(3pm)
π Cataly...tribute(3pm) π
okay bestie, welcome to the Cataly...tribute(3pm) page β that's the User Contributed Perl Documentation section of the manual, section 3pm if you're keeping track. this is a Perl module page, and yes the title got truncated with dots, we're all doing our best here. π
β¨ NAME β¨
Catalyst::Component::ApplicationAttribute β it's a Moose Role for components which capture the application context. that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's the look, literally just do this:
package My::Component;
use Moose;
extends 'Catalyst::Component';
with 'Catalyst::Component::ApplicationAttribute';
# Your code here
1;
extends your component, with this role, and you're slaying. that's it. that's the whole thing. π¦
π«Ά DESCRIPTION π«Ά
so this role hands you a BUILDARGS method, and what that method does is capture the application context into an attribute. that's the entire job description, no notes, she's focused and she's thriving. πβ¨
π ATTRIBUTES π
_application
Weak reference to the application context. weak as in the reference type, not weak as in "doesn't lift", she's carrying the whole app on her back fr fr. πͺ
π METHODS π
BUILDARGS ($self, $app)
this is the BUILDARGS method and it captures the application context into the _application attribute. that's what it does. the way that it just does exactly that and nothing else?? iconic behaviour honestly. π
_application
Reader method for the application context. so like, if you wanna read the app context, this is the door you knock on. no cap. πͺπ
π SEE ALSO π
go read these next, bestie, they're the family:
Catalyst::ComponentCatalyst::Controller
π AUTHORS π
Catalyst Contributors, see Catalyst.pm. give them their flowers, they earned them. πΈπ
π COPYRIGHT π
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. so go off, remix it, it's free real estate. π΅
and that's the whole page!! you ate that. go build something cute with it. π¦
this was perl v5.40.0, dated 2024-11-15, from the Cataly...tribute(3pm) page β mwah, bye bestie π
β¨
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms