[Catalyst-commits] r9675 - in Catalyst-Runtime/5.80/trunk/lib: .
Catalyst
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Apr 12 15:36:31 GMT 2009
Author: t0m
Date: 2009-04-12 16:36:31 +0100 (Sun, 12 Apr 2009)
New Revision: 9675
Modified:
Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod
Log:
Doc tidy up wrt plugin method
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod 2009-04-12 15:21:18 UTC (rev 9674)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst/Upgrading.pod 2009-04-12 15:36:31 UTC (rev 9675)
@@ -263,6 +263,7 @@
Instead you are recommended to use L< Catalyst::Model::Adaptor > or similar to
compose the functionality you need outside of the main application name space.
-Calling the plugin method at runtime will not be supported past Catalyst 5.81.
+Calling the plugin method will not be supported past Catalyst 5.81.
=cut
+
Modified: Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm 2009-04-12 15:21:18 UTC (rev 9674)
+++ Catalyst-Runtime/5.80/trunk/lib/Catalyst.pm 2009-04-12 15:36:31 UTC (rev 9675)
@@ -925,9 +925,9 @@
MyApp->plugin( 'prototype', 'HTML::Prototype' );
$c->prototype->define_javascript_functions;
-
+
B<Note:> This method of adding plugins is deprecated. The ability
-to add plugins like this B<will be removed> in a Catalyst 5.9.
+to add plugins like this B<will be removed> in a Catalyst 5.81.
Please do not use this functionality in new code.
=cut
@@ -935,9 +935,9 @@
sub plugin {
my ( $class, $name, $plugin, @args ) = @_;
- # See block comment in t/unit_core_plugin.t
+ # See block comment in t/unit_core_plugin.t
$class->log->warn(qq/Adding plugin using the ->plugin method is deprecated, and will be removed in Catalyst 5.81/);
-
+
$class->_register_plugin( $plugin, 1 );
eval { $plugin->import };
More information about the Catalyst-commits
mailing list