Skip Menu |

This queue is for tickets about the CatalystX-Component-Traits CPAN distribution.

Report information
The Basics
Id: 59571
Status: new
Priority: 0/
Queue: CatalystX-Component-Traits

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.14
Fixed in: (no value)



Subject: make trait namespace configurable
line 202: my $possible_parent_idx = (firstidx { /^CatalystX?::/ } @search_ns[1 .. $#search_ns]) + 1; This excludes Catalyst app specific base classes living in the app namespace (e.g. My::App::ControllerBase::Object should trigger a search for traits in My::App::ControllerRole::Object::). A possibility would be to search the hierarchy upwards until reaching Catalyst::$MVCC. line 227: push @res, "${part}::${base}For::${resolved_parent_name}::$name"; Instead of the hard coded 'For' setting MX::Traits::Pluggable's _trait_namespace would be a better and override-able option.