Zend\Expressive\ErrorMiddlewarePipe::getInternalPipeline PHP Method

getInternalPipeline() private method

Uses reflection to retrieve the internal pipeline from the composed MiddlewarePipe, in order to allow using it to create a Next instance.
private getInternalPipeline ( ) : SplQueue
return SplQueue
    private function getInternalPipeline()
    {
        $r = new ReflectionProperty($this->pipeline, 'pipeline');
        $r->setAccessible(true);
        return $r->getValue($this->pipeline);
    }