X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=c790da7d1148a581de0d51a3f28e224efb92eb72;hb=5b8ac6ccfbb1ea676aaa6b5df78080afe866933d;hp=779c213c5420c369a39104c9b78b249b695e7d85;hpb=e1a0feeac7838af26683b6aca7df860228bfbf35;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 779c213..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 { {} }); @@ -131,7 +131,7 @@ sub _command2action { my (@args, @captures); if ( ref( $extra_params[-2] ) eq 'ARRAY' ) { - @captures = @{ pop @extra_params }; + @captures = @{ splice @extra_params, -2, 1 }; } if ( ref( $extra_params[-1] ) eq 'ARRAY' ) { @@ -335,7 +335,7 @@ sub _invoke_as_component { reverse => "$component_class->$method", class => $component_class, namespace => Catalyst::Utils::class2prefix( - $component_class, $c->config->{case_sensitive} + $component_class, ref($c)->config->{case_sensitive} ), } ); @@ -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