From: Tomas Doran Date: Wed, 10 Aug 2011 21:43:59 +0000 (+0100) Subject: Fix component debug display X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cecc24fd77cb371b88b676f5917013bb1b84b14f;p=catagits%2FCatalyst-Runtime.git Fix component debug display --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 71b7c43..1a90163 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1017,11 +1017,11 @@ EOF if ( $class->debug and - my %comps = $class->container->get_all_components + my $comps = $class->container->get_all_components ) { my $column_width = Catalyst::Utils::term_width() - 8 - 9; my $t = Text::SimpleTable->new( [ $column_width, 'Class' ], [ 8, 'Type' ] ); - $t->row( $_ => ref($comps{$_}) ? 'instance' : 'class' ) for keys %comps; + $t->row( $_ => ref($comps->{$_}) ? 'instance' : 'class' ) for keys %$comps; $class->log->debug( "Loaded components:\n" . $t->draw . "\n" ); } diff --git a/t/lib/TestAppCustomContainer/Model/Foo.pm b/t/lib/TestAppCustomContainer/Model/DefaultSetup.pm similarity index 100% rename from t/lib/TestAppCustomContainer/Model/Foo.pm rename to t/lib/TestAppCustomContainer/Model/DefaultSetup.pm