X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FComponent.pm;h=c065664d5d19c77772a20085671de6e5d4eb836c;hb=829b22f766b0b1d1a09a6ce152abe48ad9bde5ec;hp=0fbca47f77be75e5ac919289b0b6efce3dd8a19a;hpb=1b79e1994c40fc525b4a84c900a5c95ffd4a2f8a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Component.pm b/lib/Catalyst/Component.pm index 0fbca47..c065664 100644 --- a/lib/Catalyst/Component.pm +++ b/lib/Catalyst/Component.pm @@ -172,6 +172,15 @@ something like this: return $class->new($app, $args); } +=head2 _component_name + +The name of the component within an application. This is used to +pass the component's name to actions generated (becoming +C<< $action->class >>). This is needed so that the L method can +return an instance of a different class (e.g. a L anonymous class), +(as finding the component name by C<< ref($self) >> will not work correctly in +such cases). + =head2 $c->config =head2 $c->config($hashref)