[Catalyst-commits] r10835 - in Catalyst-Runtime/5.80/trunk: .
lib/Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Wed Jul 8 22:12:29 GMT 2009
Author: t0m
Date: 2009-07-08 22:12:29 +0000 (Wed, 08 Jul 2009)
New Revision: 10835
Modified:
Catalyst-Runtime/5.80/trunk/Changes
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Request.pm
Log:
More ->config fixes + Changelog
Modified: Catalyst-Runtime/5.80/trunk/Changes
===================================================================
--- Catalyst-Runtime/5.80/trunk/Changes 2009-07-08 21:54:36 UTC (rev 10834)
+++ Catalyst-Runtime/5.80/trunk/Changes 2009-07-08 22:12:29 UTC (rev 10835)
@@ -3,6 +3,8 @@
Bug fixes:
- Fix replace_constructor warning to actually work if you make your
application class immutable without that option.
+ - Fix POD to refer to ->config(key => $val), rather than
+ ->config->{key} = $val, as the latter form is deprecated.
Refactoring / cleanups:
- Deleted the Restarter engine and its Watcher code. Use the
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm 2009-07-08 21:54:36 UTC (rev 10834)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Component.pm 2009-07-08 22:12:29 UTC (rev 10835)
@@ -157,9 +157,10 @@
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,
in the case of MyApp::Controller::Foo this would be
-MyApp->config->{'Controller::Foo'}). The arguments are expected to be a
-hashref and are merged with the __PACKAGE__->config hashref before calling
-->new to instantiate the component.
+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.
You can override it in your components to do custom instantiation, using
something like this:
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Request.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Request.pm 2009-07-08 21:54:36 UTC (rev 10834)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Request.pm 2009-07-08 22:12:29 UTC (rev 10835)
@@ -473,7 +473,7 @@
used in a while loop, reading $maxlength bytes on every call. $maxlength
defaults to the size of the request if not specified.
-You have to set MyApp->config->{parse_on_demand} to use this directly.
+You have to set MyApp->config(parse_on_demand => 1) to use this directly.
=head2 $req->referer
@@ -649,7 +649,7 @@
append mode:
$req->uri_with( { key => 'value' }, { mode => 'append' } );
-
+
See C<mangle_params> for an explanation of this behavior.
=cut
More information about the Catalyst-commits
mailing list