Zend\Expressive\Container\ApplicationFactory::injectPipeline PHP Method

injectPipeline() private method

This method injects the middleware pipeline. If the pre-RC6 pre_/post_routing keys exist, it raises a deprecation notice, and then builds the pipeline based on that configuration (though it will raise an exception if other keys are *also* present). Otherwise, it passes the pipeline on to injectMiddleware(), returning a boolean value based on whether or not any middleware was injected.
Deprecation: This method will be removed in v1.1.
private injectPipeline ( array $pipeline, Application $app ) : boolean
$pipeline array
$app Zend\Expressive\Application
return boolean
    private function injectPipeline(array $pipeline, Application $app)
    {
        $deprecatedKeys = $this->getDeprecatedKeys(array_keys($pipeline));
        if (!empty($deprecatedKeys)) {
            $this->handleDeprecatedPipeline($deprecatedKeys, $pipeline, $app);
            return true;
        }
        return $this->injectMiddleware($pipeline, $app);
    }