Skip to content

Commit

Permalink
Merge branch '9.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 13, 2022
2 parents a74639f + 6d44869 commit d53a204
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ public function through($pipes)
return $this;
}

/**
* Push additional pipes onto the pipeline.
*
* @param array|mixed $pipes
* @return $this
*/
public function pipe($pipes)
{
array_push($this->pipes, ...(is_array($pipes) ? $pipes : func_get_args()));

return $this;
}

/**
* Set the method to call on the pipes.
*
Expand Down

0 comments on commit d53a204

Please sign in to comment.