src/Traits/PipelineTrait.php
protected function makePipeline(): Pipeline
    {
        try {
            $this->pipeline = $this->container->get(Pipeline::class);

            foreach ($this->middleware as $middleware) {
                if ($middleware instanceof MiddlewareInterface) {
                    $this->pipeline->pushMiddleware($middleware);
                } else {
                    // dynamically resolved
                    $this->pipeline->pushMiddleware($this->container->get($middleware));
                }
            }
        } catch (ContainerExceptionInterface $e) {
            throw new RouteException($e->getMessage(), $e->getCode(), $e);
        }

        return $this->pipeline;
    }
protected function makePipeline(): Pipeline
    {
        try {
            $this->pipeline = $this->container->get(Pipeline::class);

            foreach ($this->middleware as $middleware) {
                if ($middleware instanceof MiddlewareInterface) {
                    $this->pipeline->pushMiddleware($middleware);
                } else {
                    // dynamically resolved
                    $this->pipeline->pushMiddleware($this->container->get($middleware));
                }
            }
        } catch (ContainerExceptionInterface $e) {
            throw new RouteException($e->getMessage(), $e->getCode(), $e);
        }

        return $this->pipeline;
    }
protected function makePipeline ( ) : Pipeline { try { $ this -> pipeline = $ this -> container -> get ( Pipeline :: class ) ; foreach ( $ this -> middleware as $ middleware ) { if ( $ middleware instanceof MiddlewareInterface ) { $ this -> pipeline -> pushMiddleware ( $ middleware ) ; } else { // dynamically resolved $ this -> pipeline -> pushMiddleware ( $ this -> container -> get ( $ middleware ) ) ; } } } catch ( ContainerExceptionInterface $ e ) { throw new RouteException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } return $ this -> pipeline ; }
Get associated route pipeline.

@return Pipeline

@throws RouteException
Get associated route pipeline .