Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Container/ApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function __invoke(ContainerInterface $container)
}

if (empty($config['zend-expressive']['programmatic_pipeline'])) {
$this->injectRoutesAndPipeline($app, $config);
$this->injectRoutesAndPipeline($app, $container);
}

return $app;
Expand All @@ -186,10 +186,11 @@ public function __invoke(ContainerInterface $container)
* Injects routes and the middleware pipeline into the application.
*
* @param Application $app
* @param array $config
* @param ContainerInterface $container
*/
private function injectRoutesAndPipeline(Application $app, array $config)
private function injectRoutesAndPipeline(Application $app, ContainerInterface $container)
{
$config = $container->has('config') ? $container->get('config') : [];
$pipelineCreated = false;

if (isset($config['middleware_pipeline']) && is_array($config['middleware_pipeline'])) {
Expand Down