get_all_components is getting until we know what to do
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 7e4e229..c87bff2 100644 (file)
@@ -1017,7 +1017,7 @@ EOF
 
     if (
         $class->debug and
-        my $comps = $class->container->get_all_components
+        my $comps = $class->container->get_all_components($class)
     ) {
         my $column_width = Catalyst::Utils::term_width() - 8 - 9;
         my $t = Text::SimpleTable->new( [ $column_width, 'Class' ], [ 8, 'Type' ] );
@@ -1435,7 +1435,7 @@ sub components {
         $container->add_component( $_ ) for keys %$comps;
     }
 
-    return $container->get_all_components();
+    return $container->get_all_components($class);
 }
 
 =head2 $c->context_class