[Catalyst] Re: Catalyst::Plugin::DBIC::QueryLog
Jonathan Rockway
jon at jrock.us
Tue Sep 4 12:15:32 GMT 2007
Fayland Lam wrote:
> see attachment. check if it's OK?
>
> now it's not per request any more. hmm, after several requests,
mst wrote:
> That's trivial with Catalyst::Component::InstancePerContext.
He intended for you to use that. =
It implements the per-request magic for you with some clever use of
ACCEPT_CONTEXT and the stash. Basically, it calls your builder method
if you don't already have an instance in $c->stash. Since that gets
cleared every request, you get your per-request.
So, try again :) You're almost there :)
Regards,
Jonathan Rockway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070904/bfe4=
8882/signature.pgp
More information about the Catalyst
mailing list