Pedro Melo wrote:
* is it possible for a plugin, at setup time, to set the request_class()?
Yes.
before setup_finalize => sub { my $self = shift;
$self->request_class("New::Request::Class"); };
* is there a better way?
Yes. Make a request class role, then use CatalystX::RoleApplicator
to apply it to the request class.
See Catalyst::Plugin::Browser for an example of it being used in a plugin.
Cheers
t0m
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/