Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Re: Class data in a Moose::Role plugin

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


bobtfish at bobtfish

Sep 2, 2009, 7:30 AM

Post #1 of 2 (820 views)
Permalink
Re: Class data in a Moose::Role plugin

Bill Moseley wrote:
> I also tried with Catalyst::ClassData. Must be missing something.

Nope, you're not missing anything - class data in roles doesn't play nicely.

This would all be a lot easier (or not needed) if we had an app class
instance, rather than it being a class..

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


moseley at hank

Sep 2, 2009, 5:18 PM

Post #2 of 2 (729 views)
Permalink
Re: Class data in a Moose::Role plugin [In reply to]

On Wed, Sep 2, 2009 at 7:30 AM, Tomas Doran <bobtfish [at] bobtfish> wrote:

> Bill Moseley wrote:
>
>> I also tried with Catalyst::ClassData. Must be missing something.
>>
>
> Nope, you're not missing anything - class data in roles doesn't play
> nicely.
>
> This would all be a lot easier (or not needed) if we had an app class
> instance, rather than it being a class..
>

True.

In my case what I did was use package lexicals. Wasn't sure about that
because not sure how Moose does its magic.


Thanks,



--
Bill Moseley
moseley [at] hank

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.