Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Updates to zend-expressive-helper 5.0.0alpha3
Browse files Browse the repository at this point in the history
Needed to update due to invalid config provider namespace in alpha2.

This patch also updates the configuration to register the
zend-expressive and zend-expressive-helpers config providers, and to
create a pipeline that is compatible with zend-expressive alpha2+.
  • Loading branch information
weierophinney committed Feb 6, 2018
1 parent 02acc9e commit e3465a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"zendframework/zend-component-installer": "^2.0",
"zendframework/zend-config-aggregator": "^1.0",
"zendframework/zend-expressive": "^3.0.0alpha3 || ^3.0",
"zendframework/zend-expressive-helpers": "^5.0.0alpha2 || ^5.0",
"zendframework/zend-expressive-helpers": "^5.0.0alpha3 || ^5.0",
"zendframework/zend-stdlib": "^3.1"
},
"require-dev": {
Expand Down
3 changes: 3 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
// Include cache configuration
new ArrayProvider($cacheConfig),

\Zend\Expressive\Helper\ConfigProvider::class,
\Zend\Expressive\ConfigProvider::class,

// Default App module config
App\ConfigProvider::class,

Expand Down
6 changes: 3 additions & 3 deletions config/pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Zend\Expressive\Helper\UrlHelperMiddleware;
use Zend\Expressive\Middleware\ImplicitHeadMiddleware;
use Zend\Expressive\Middleware\ImplicitOptionsMiddleware;
use Zend\Expressive\Middleware\NotFoundHandler;
use Zend\Expressive\Middleware\NotFoundMiddleware;
use Zend\Expressive\Router\DispatchMiddleware;
use Zend\Expressive\Router\PathBasedRoutingMiddleware;
use Zend\Stratigility\Middleware\ErrorHandler;
Expand Down Expand Up @@ -56,6 +56,6 @@
$app->pipe(DispatchMiddleware::class);

// At this point, if no Response is returned by any middleware, the
// NotFoundHandler kicks in; alternately, you can provide other fallback
// NotFoundMiddleware kicks in; alternately, you can provide other fallback
// middleware to execute.
$app->pipe(NotFoundHandler::class);
$app->pipe(NotFoundMiddleware::class);
1 change: 0 additions & 1 deletion test/ExpressiveInstallerTest/ContainersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function testContainer(
$this->assertTrue($container->has(Expressive\Helper\UrlHelper::class));
$this->assertTrue($container->has(Expressive\Helper\ServerUrlHelper::class));
$this->assertTrue($container->has(Expressive\Application::class));
$this->assertTrue($container->has(Expressive\Router\RouterInterface::class));

// Test home page
$setupRoutes = strpos($copyFilesKey, 'minimal') !== 0;
Expand Down

0 comments on commit e3465a7

Please sign in to comment.