Catalyst::Model::Factory::PerRequest(3pm)

Catalyst::Model::Factory::PerRequest3pm

Use a plain class as a catalyst model, instantiating it once per catalyst request

Usage

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".

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8–10
  4. 11
  5. 12–13

From libcatalyst-model-adaptor-perl 0.10-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.