[Bps-public-commit] r14623 - in Path-Dispatcher/trunk: lib/Path

sartak at bestpractical.com sartak at bestpractical.com
Tue Jul 29 16:12:50 EDT 2008


Author: sartak
Date: Tue Jul 29 16:12:46 2008
New Revision: 14623

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher.pm

Log:
 r67913 at onn:  sartak | 2008-07-29 16:12:40 -0400
 Pass the current match state to begin/end stage methods


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	Tue Jul 29 16:12:46 2008
@@ -47,7 +47,7 @@
         for $self->rules;
 
     for my $stage ($self->stages) {
-        $self->begin_stage($stage);
+        $self->begin_stage($stage, \@matches);
 
         for my $rule (@{ $rules_for_stage{$stage} || [] }) {
             my $vars = $rule->match($path)
@@ -59,7 +59,7 @@
             };
         }
 
-        $self->end_stage($stage);
+        $self->end_stage($stage, \@matches);
     }
 
     return if !@matches;



More information about the Bps-public-commit mailing list