[Catalyst-commits] r9101 - Catalyst-Runtime/5.80/trunk/lib

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Sat Jan 17 22:34:48 GMT 2009


Author: rafl
Date: 2009-01-17 22:34:48 +0000 (Sat, 17 Jan 2009)
New Revision: 9101

Modified:
   Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Log:
Doc improvement for ->visit. mateu++

Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-01-17 18:48:24 UTC (rev 9100)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm	2009-01-17 22:34:48 UTC (rev 9101)
@@ -357,6 +357,13 @@
 calling the new C<$action> / C<$class-E<gt>$method>. This means that C<begin>,
 C<auto> and the method you go to are called, just like a new request.
 
+In addition both C<< $c->action >> and C<< $c->namespace >> are localized.
+This means, for example, that $c->action methods such as C<name>, C<class> and
+C<reverse> return information for the visited action when they are invoked
+within the visited action.  This is different from the behavior of C<forward>
+which continues to use the $c->action object from the caller action even when
+invoked from the callee.
+
 C<$c-E<gt>stash> is kept unchanged.
 
 In effect, C<visit> allows you to "wrap" another action, just as it




More information about the Catalyst-commits mailing list