From: Tomas Doran Date: Fri, 25 Sep 2009 12:03:50 +0000 (+0000) Subject: Remove warnings for using Catalyst::Dispatcher->dispatch_types X-Git-Tag: 5.80014~40 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=5b8ac6ccfbb1ea676aaa6b5df78080afe866933d Remove warnings for using Catalyst::Dispatcher->dispatch_types --- diff --git a/Changes b/Changes index 204e384..e07520c 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,8 @@ - Require MooseX::MethodAttributes 0.17. This in turn requires new MooseX::Types to stop warnings in Moose 0.91, and correctly supports role combination of roles containing attributed methods. + - Catalyst::Dispatcher::dispatch_types no longer throws deprecated warnings + as there is no recommended alternative. 5.80013 2009-09-17 11:07:04 diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 93c0d93..c790da7 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -29,7 +29,7 @@ our @POSTLOAD = qw/Default/; # Note - see back-compat methods at end of file. has _tree => (is => 'rw', builder => '_build__tree'); -has _dispatch_types => (is => 'rw', default => sub { [] }, required => 1, lazy => 1); +has dispatch_types => (is => 'rw', default => sub { [] }, required => 1, lazy => 1); has _registered_dispatch_types => (is => 'rw', default => sub { {} }, required => 1, lazy => 1); has _method_action_class => (is => 'rw', default => 'Catalyst::Action'); has _action_hash => (is => 'rw', required => 1, lazy => 1, default => sub { {} }); @@ -722,7 +722,6 @@ use Moose; # Alias _method_name to method_name, add a before modifier to warn.. foreach my $public_method_name (qw/ tree - dispatch_types registered_dispatch_types method_action_class action_hash