Cataly...actory(3pm)
π Cataly...actory(3pm) π
okay bestie, welcome to Cataly...actory(3pm) β it's the perl manual page for Catalyst::Model::Factory, and yes the title is literally truncated like that, we're keeping it exactly as it is, no editing, periodt. π
β¨ NAME β¨
Catalyst::Model::Factory β use a plain class as a Catalyst model, instantiating it every time it is requested π¦
like. a plain class. as a model. and every single time someone asks for it, boom, brand new instance. main character energy fr fr. π
β¨ SYNOPSIS β¨
okay so this module works just like Catalyst::Model::Adaptor β same vibe, same energy β except that a fresh instance of your adapted class gets created every single time it is requested via $c->model.
not a cached one. not a shared one. a NEW one. every time. no cap. π₯
β¨ CUSTOMIZING β¨
you can customize your subclass just like Catalyst::Model::Adaptor, bestie, same as always π
but β and this is the plot twist β instead of $app, you'll get $c, the current request context. π«Ά
reminder:$appβ β$cβ . that's the whole switch. iykyk.
β¨ METHODS β¨
these methods are called by Catalyst, not by you. like, they're not for you, they're for the framework. hands off, gorgeous. π
β¨ COMPONENT β¨
Load your class π«
β¨ ACCEPT_CONTEXT β¨
Create an instance of your class and return it. πΈ
β¨ SEE ALSO β¨
for all the critical documentation, see Catalyst::Model::Adaptor. like genuinely, that's where the real tea is, go read it. π
and that's the page, babe!! π this was perl v5.34.0, dated 2022-06-09, and the page signs off as Cataly...actory(3pm) β love that for it. mwah. ππβ¨
π¦ where this page comes from
- debian bookworm: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-model-adaptor-perl 0.10-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-model-adaptor-perl 0.10-3 Β· 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