From: Tomas Doran Date: Fri, 21 Oct 2011 14:19:48 +0000 (-0600) Subject: Un-document MyApp->plugin method X-Git-Tag: 5.90005~4^2~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=3d16b0d0091aca9d146f0bad2ffe04744e83dd17 Un-document MyApp->plugin method --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 2e3aeee..d53d0f4 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -994,26 +994,11 @@ sub path_to { else { return Path::Class::File->new( $c->config->{home}, @path ) } } -=head2 $c->plugin( $name, $class, @args ) - -Helper method for plugins. It creates a class data accessor/mutator and -loads and instantiates the given class. - - MyApp->plugin( 'prototype', 'HTML::Prototype' ); - - $c->prototype->define_javascript_functions; - -B This method of adding plugins is deprecated. The ability -to add plugins like this B in a Catalyst 5.81. -Please do not use this functionality in new code. - -=cut - sub plugin { my ( $class, $name, $plugin, @args ) = @_; # 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->log->warn(qq/Adding plugin using the ->plugin method is deprecated, and will be removed in a future release/); $class->_register_plugin( $plugin, 1 );