logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catalyst::Model::Factory::PerRequest - use a plain class as a Catalyst model, instantiating it once per

Customizing

       You can customize your subclass just like Catalyst::Model::Adaptor.  Instead of $app, though, you'll get
       $c, the current request context.

Methods

       These methods are called by Catalyst, not by you:

   COMPONENT
       Load your class

   ACCEPT_CONTEXT
       Create an instance of your class and return it.

Name

       Catalyst::Model::Factory::PerRequest - use a plain class as a Catalyst model, instantiating it once per
       Catalyst request

See Also

       For all the critical documentation, see Catalyst::Model::Adaptor.

perl v5.34.0                                       2022-06-09             Catalyst::Model...ory::PerRequest(3pm)

Synopsis

       This module works just like Catalyst::Model::Factory, except that a fresh instance of your adapted class
       is once per Catalyst request, not every time you ask for the object via "$c->model".

See Also