-
-
23 Feb 2011 00:26:15 UTC
- Distribution: Catalyst-Model-Adaptor
- Module version: 0.10
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (5)
- Testers (3676 / 29 / 0)
- Kwalitee
Bus factor: 3- 62.93% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (26.32KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst::Runtime
- MRO::Compat
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Model::Factory::PerRequest - use a plain class as a Catalyst model, instantiating it once per Catalyst request
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
.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.
SEE ALSO
For all the critical documentation, see Catalyst::Model::Adaptor.
Module Install Instructions
To install Catalyst::Model::Adaptor, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Model::Adaptor
perl -MCPAN -e shell install Catalyst::Model::Adaptor
For more information on module installation, please visit the detailed CPAN module installation guide.