Cataly...tribute(3pm)

πŸ“¦
version 5.90132 Β· 6 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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::Component
  • Catalyst::Controller

πŸ’œ AUTHORS πŸ’œ

Catalyst Contributors, see Catalyst.pm. give them their flowers, they earned them. πŸŒΈπŸ‘‘


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