/** * @param $stage * * @return $this */ public function addMiddleware(StageInterface $stage) { $this->pipeline = $this->getPipeline(); $this->pipeline = $this->pipeline->pipe($stage); return $this; }
/** * @param $stage * * @return $this */ public function addMiddleware(StageInterface $stage) { $this->pipeline = $this->getPipeline(); $this->pipeline = $this->pipeline->pipe($stage); return $this; }