for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Afonso\Soapi;
use League\Pipeline\Pipeline;
use League\Pipeline\StageInterface;
trait ProcessesWithPipelines
{
/**
* The inbound pipeline.
*
* @var \League\Pipeline\Pipeline
*/
protected $inboundPipeline;
* The outbound pipeline.
protected $outboundPipeline;
* Adds a new stage to the inbound pipeline.
* @param \League\Pipeline\StageInterface $stage
public function addInboundPipelineStage(StageInterface $stage)
$this->inboundPipeline = $this->inboundPipeline->pipe($stage);
}
* Adds a new stage to the outbound pipeline.
public function addOutboundPipelineStage(StageInterface $stage)
$this->outboundPipeline = $this->outboundPipeline->pipe($stage);