[Catalyst] How to access $c->apache in 5.9?

Eden Cardim edencardim at gmail.com
Mon Apr 23 10:41:30 GMT 2012

    Hailin> Finally I solved the problem like this

# somewhere in module like after_login() in Admin.pm
if ( $ENV{ MOD_PERL } ) {
  my $r = $c->req->env->{'psgi.input'};
  $r->user( $c->user->uid );

    Hailin> Since the stuff is engine relevant, maybe it is better to be
    Hailin> implemented in Plack::Handler::Apache2 :)

No, as I've said before, it's better implemented in a middleware.

      Eden Cardim         Need help with your Catalyst or DBIx::Class project?
      Code Monkey                 http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.    Want a managed development or deployment platform?
 http://edencardim.com            http://www.shadowcat.co.uk/servers/

More information about the Catalyst mailing list