X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=7861b5f2893fdaa293e9eb7b5f2359629bbaf6ea;hp=d36979d1c68a39f291a92a59d99d1fb85d652710;hb=1601aed5f75e09f1190a3f9a16cdd32df11834d1;hpb=fb74321b19e50e755b53f7f537de0079ceee9e91 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index d36979d..7861b5f 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1473,7 +1473,13 @@ sub components { $container->add_component( $_ ) for keys %$comps; } - return $container->get_all_components($class); + # FIXME: + # t0m says should be "ref($c) ? $c->container->get_all_singleton_lifecycle_components : $c->container->get_all_components($c)". + # are you sure? isn't it the other way around? + # i.e. ref($c) ? get_all_components($c) : get_all_singleton_lifecycle_components() + return + ref($class) ? $container->get_all_singleton_lifecycle_components + : $container->get_all_components($class); } =head2 $c->context_class