Document the method name I actually added, idiot
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Component.pm
index 0fbca47..c065664 100644 (file)
@@ -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</COMPONENT> method can
+return an instance of a different class (e.g. a L<Class::MOP> 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)