[Catalyst-commits] r12663 - Catalyst-Runtime/5.80/trunk/lib/Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Fri Jan 15 16:39:57 GMT 2010
Author: t0m
Date: 2010-01-15 16:39:55 +0000 (Fri, 15 Jan 2010)
New Revision: 12663
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm
Log:
Clarify that it's an app, not a ctx here
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm 2010-01-15 11:42:16 UTC (rev 12662)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm 2010-01-15 16:39:55 UTC (rev 12663)
@@ -157,7 +157,7 @@
=head1 METHODS
-=head2 new($c, $arguments)
+=head2 new($app, $arguments)
Called by COMPONENT to instantiate the component; should return an object
to be stored in the application's component hash.
@@ -168,9 +168,10 @@
If this method is present (as it is on all Catalyst::Component subclasses,
it is called by Catalyst during setup_components with the application class
-as $c and any config entry on the application for this component (for example,
+as $app and any config entry on the application for this component (for example,
in the case of MyApp::Controller::Foo this would be
C<< MyApp->config('Controller::Foo' => \%conf >>).
+
The arguments are expected to be a hashref and are merged with the
C<< __PACKAGE__->config >> hashref before calling C<< ->new >>
to instantiate the component.
More information about the Catalyst-commits
mailing list