src/Leevel/Pipeline/Pipeline.php
public function then(Closure $end = null)
    {
        $stage = $this->stage;

        if ($end) {
            $stage[] = $end;
        }

        $this->generator = $this->stageGenerator($stage);

        return $this->traverseGenerator(...$this->passed);
    }
public function then(Closure $end = null)
    {
        $stage = $this->stage;

        if ($end) {
            $stage[] = $end;
        }

        $this->generator = $this->stageGenerator($stage);

        return $this->traverseGenerator(...$this->passed);
    }
执行管道工序响应结果.

@param \Closure $end

@since 2018.01.03

@return mixed