X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=17c9403bb3c4404339671a07ca064aaa790dd394;hb=f01b81b9c0b7286042abc1d805f8b9dabff98a38;hp=c5f8df5d1cac394ef23156e2394fe9a77037bf7e;hpb=e7e4c4697a2a0f13fd8d250cb0b6b080013747b5;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index c5f8df5..17c9403 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -79,7 +79,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.80008'; +our $VERSION = '5.80011'; { my $dev_version = $VERSION =~ /_\d{2}$/; @@ -2153,6 +2153,7 @@ sub setup_components { my @comps = sort { length $a <=> length $b } $class->locate_components($config); + my %comps = map { $_ => 1 } @comps; my $deprecatedcatalyst_component_names = grep { /::[CMV]::/ } @comps; $class->log->warn(qq{Your application is using the deprecated ::[MVC]:: type naming scheme.\n}. @@ -2175,6 +2176,7 @@ sub setup_components { for my $component (@comps) { $class->components->{ $component } = $class->setup_component($component); for my $component ($class->expand_component_module( $component, $config )) { + next if $comps{$component}; $class->_controller_init_base_classes($component); # Also cover inner packages $class->components->{ $component } = $class->setup_component($component); } @@ -2221,7 +2223,7 @@ is expected to return a list of component (package) names to be set up. sub expand_component_module { my ($class, $module) = @_; - Devel::InnerPackage::list_packages( $module ); + return Devel::InnerPackage::list_packages( $module ); } =head2 $c->setup_component @@ -2785,6 +2787,8 @@ esskar: Sascha Kiefer fireartist: Carl Franks +frew: Arthur Axel "fREW" Schmidt + gabb: Danijel Milicevic Gary Ashton Jones