X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=4b7de6d70321457a956be1b9ebc290529727c5e2;hb=7d7519a4bbd079da53bf50f4822cabb0e3af74a1;hp=3383fc6d0d01151a34ca2c6a8f790acd2707de3a;hpb=843871cfbe3ee5c1a29239b9eb79009c3aefe622;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 3383fc6..4b7de6d 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -110,7 +110,7 @@ has _body => ( sub body { my $self = shift; $self->_context->prepare_body(); - $self->_body(@_) if scalar @_; + croak 'body is a reader' if scalar @_; return blessed $self->_body ? $self->_body->body : $self->_body; } @@ -210,7 +210,7 @@ Returns a reference to an array containing the arguments. For example, if your action was - package MyApp::C::Foo; + package MyApp::Controller::Foo; sub moose : Local { ... @@ -570,7 +570,7 @@ L objects. =head2 $req->uri -Returns a URI object for the current request. Stringifies to the URI text. +Returns a L object for the current request. Stringifies to the URI text. =head2 $req->mangle_params( { key => 'value' }, $appendmode); @@ -676,7 +676,10 @@ sub uri_with { =head2 $req->user Returns the currently logged in user. B, do not call, -this will be removed in version 5.81. +this will be removed in version 5.81. To retrieve the currently authenticated +user, see C<< $c->user >> and C<< $c->user_exists >> in +L. For the C provided by the +webserver, see C<< $req->remote_user >> below. =head2 $req->remote_user