23 Feb 2011 00:26:15 UTC
- Distribution: Catalyst-Model-Adaptor
- Module version: 0.10
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (5)
- Testers (3676 / 29 / 0)
- KwaliteeBus factor: 3
- 62.93% Coverage
- License: perl_5
- Activity24 month
- Download (26.32KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE usersBOBTFISH Tomas Doranand 1 contributors
Catalyst::Model::Factory::PerRequest - use a plain class as a Catalyst model, instantiating it once per Catalyst request
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
You can customize your subclass just like Catalyst::Model::Adaptor. Instead of
$app, though, you'll get
$c, the current request context.
These methods are called by Catalyst, not by you:
Load your class
Create an instance of your class and return it.
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.
perl -MCPAN -e shell install Catalyst::Model::Adaptor
For more information on module installation, please visit the detailed CPAN module installation guide.