[Catalyst-commits] r13494 - Catalyst-Runtime/5.80/branches/gsoc_breadboard/lib

arcanez at dev.catalyst.perl.org arcanez at dev.catalyst.perl.org
Mon Aug 16 18:11:03 GMT 2010


Author: arcanez
Date: 2010-08-16 19:11:03 +0100 (Mon, 16 Aug 2010)
New Revision: 13494

Modified:
   Catalyst-Runtime/5.80/branches/gsoc_breadboard/lib/Catalyst.pm
Log:
get the components from their services in the sub-containers, not from $c->components

Modified: Catalyst-Runtime/5.80/branches/gsoc_breadboard/lib/Catalyst.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/gsoc_breadboard/lib/Catalyst.pm	2010-08-16 17:57:53 UTC (rev 13493)
+++ Catalyst-Runtime/5.80/branches/gsoc_breadboard/lib/Catalyst.pm	2010-08-16 18:11:03 UTC (rev 13494)
@@ -537,9 +537,11 @@
     my $filter   = "^${appclass}::(" . join( '|', @prefixes ) . ')::';
     $filter = qr/$filter/; # Compile regex now rather than once per loop
 
+    my @components = map { $c->container->get_sub_container($_)->get_service_list } $c->container->get_sub_container_list; 
+
     # map the original component name to the sub part that we will search against
     my %eligible = map { my $n = $_; $n =~ s{^$appclass\::[^:]+::}{}; $_ => $n; }
-        grep { /$filter/ } keys %{ $c->components };
+        grep { /$filter/ } @components; 
 
     # undef for a name will return all
     return keys %eligible if !defined $name;




More information about the Catalyst-commits mailing list