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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
