Cataly...actory(3pm)

πŸ“¦
version 0.10 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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