X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=9183864fe422500e4214e96695e67bbce3fb9576;hp=b0d3c91b408df26de0b970803546587cdc5c8f5c;hb=e8b9f2a92084b3b9dab6b2b879900481b8548b3b;hpb=8dc69021513026f14bf6920a289759b73ad1e29f diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index b0d3c91..9183864 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -65,7 +65,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.7012'; +our $VERSION = '5.7013'; sub import { my ( $class, @arguments ) = @_; @@ -1572,10 +1572,8 @@ sub prepare { } # For on-demand data - $c->request->{_context} = $c; - $c->response->{_context} = $c; - weaken( $c->request->{_context} ); - weaken( $c->response->{_context} ); + $c->request->_context($c); + $c->response->_context($c); # Allow engine to direct the prepare flow (for POE) if ( $c->engine->can('prepare') ) {