the possibility of using a coderef better
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 851ff1d..859df2a 100644 (file)
@@ -718,7 +718,7 @@ sub _filter_component {
     # die "Circular Dependencies Detected." if $tracker{$comp};
     #   $tracker{$comp}++;
     if(ref $comp eq 'CODE') {
-      $comp = $comp->();
+      $comp = $comp->($c);
     }
     #$tracker{$comp}++;