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

Commit 5d8e965

Browse files
committed
No need to import new response classes
They exist in a subnamespace of the current namespace.
1 parent edadc0e commit 5d8e965

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ConfigProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace Zend\Expressive;
1111

12-
use Zend\Expressive\Response\NotFoundResponseInterface;
13-
use Zend\Expressive\Response\RouterResponseInterface;
1412
use Zend\HttpHandlerRunner\Emitter\EmitterInterface;
1513
use Zend\HttpHandlerRunner\RequestHandlerRunner;
1614
use Zend\Stratigility\Middleware\ErrorHandler;
@@ -48,11 +46,11 @@ public function getDependencies() : array
4846
// Change the following in development to the WhoopsErrorResponseGeneratorFactory:
4947
Middleware\ErrorResponseGenerator::class => Container\ErrorResponseGeneratorFactory::class,
5048
Middleware\NotFoundMiddleware::class => Container\NotFoundMiddlewareFactory::class,
51-
NotFoundResponseInterface::class => Container\ResponseFactory::class,
5249
RequestHandlerRunner::class => Container\RequestHandlerRunnerFactory::class,
50+
Response\NotFoundResponseInterface::class => Container\ResponseFactory::class,
51+
Response\RouterResponseInterface::class => Container\ResponseFactory::class,
5352
Router\DispatchMiddleware::class => Container\DispatchMiddlewareFactory::class,
5453
Router\PathBasedRoutingMiddleware::class => Container\RouteMiddlewareFactory::class,
55-
RouterResponseInterface::class => Container\ResponseFactory::class,
5654
ServerRequestErrorResponseGenerator::class => Container\ServerRequestErrorResponseGeneratorFactory::class,
5755
ServerRequestFactory::class => Container\ServerRequestFactoryFactory::class,
5856
],

0 commit comments

Comments
 (0)