Open dmitryuk opened 4 years ago
I don't think this is necessary. There are already ways you could do this in the pipes themselves. The first pipe will receive a $next
closure, just do the $start
, $next()
$end
bit in the first pipe.
@dmitryuk Pipes are essentially middleware, so having a pipeline of middleware to run on a pipeline seems somewhat recursive and redundant.
The proposal is to add middleware feature to pipeline stages.
Handle
should be called for each stage in pipeline. For example, if you want to track performance of each stage in a pipeline, you should kindly do this: