99
1010namespace Zend \Expressive ;
1111
12+ use Psr \Http \Message \ResponseInterface ;
13+ use Psr \Http \Message \ServerRequestInterface ;
14+ use Psr \Http \Message \StreamInterface ;
1215use Zend \HttpHandlerRunner \Emitter \EmitterInterface ;
1316use Zend \HttpHandlerRunner \RequestHandlerRunner ;
1417use Zend \Stratigility \Middleware \ErrorHandler ;
@@ -29,7 +32,6 @@ public function __invoke() : array
2932
3033 public function getDependencies () : array
3134 {
32- // @codingStandardsIgnoreStart
3335 return [
3436 'aliases ' => [
3537 DEFAULT_DELEGATE => Handler \NotFoundHandler::class,
@@ -40,25 +42,21 @@ public function getDependencies() : array
4042 ROUTE_MIDDLEWARE => Router \Middleware \PathBasedRoutingMiddleware::class,
4143 ],
4244 'factories ' => [
43- Application::class => Container \ApplicationFactory::class,
44- ApplicationPipeline::class => Container \ApplicationPipelineFactory::class,
45- EmitterInterface::class => Container \EmitterFactory::class,
46- ErrorHandler::class => Container \ErrorHandlerFactory::class,
47- Handler \NotFoundHandler::class => Container \NotFoundHandlerFactory::class,
48- MiddlewareContainer::class => Container \MiddlewareContainerFactory::class,
49- MiddlewareFactory::class => Container \MiddlewareFactoryFactory::class,
45+ Application::class => Container \ApplicationFactory::class,
46+ ApplicationPipeline::class => Container \ApplicationPipelineFactory::class,
47+ EmitterInterface::class => Container \EmitterFactory::class,
48+ ErrorHandler::class => Container \ErrorHandlerFactory::class,
49+ Handler \NotFoundHandler::class => Container \NotFoundHandlerFactory::class,
50+ MiddlewareContainer::class => Container \MiddlewareContainerFactory::class,
51+ MiddlewareFactory::class => Container \MiddlewareFactoryFactory::class,
5052 // Change the following in development to the WhoopsErrorResponseGeneratorFactory:
51- Middleware \ErrorResponseGenerator::class => Container \ErrorResponseGeneratorFactory::class,
52- NOT_FOUND_RESPONSE => Container \ResponseFactory::class,
53- RequestHandlerRunner::class => Container \RequestHandlerRunnerFactory::class,
54- Router \IMPLICIT_HEAD_MIDDLEWARE_RESPONSE => Container \ResponseFactory::class,
55- Router \IMPLICIT_HEAD_MIDDLEWARE_STREAM_FACTORY => Container \StreamFactoryFactory::class,
56- Router \IMPLICIT_OPTIONS_MIDDLEWARE_RESPONSE => Container \ResponseFactory::class,
57- Router \METHOD_NOT_ALLOWED_MIDDLEWARE_RESPONSE => Container \ResponseFactory::class,
58- SERVER_REQUEST_ERROR_RESPONSE_GENERATOR => Container \ServerRequestErrorResponseGeneratorFactory::class,
59- SERVER_REQUEST_FACTORY => Container \ServerRequestFactoryFactory::class,
53+ Middleware \ErrorResponseGenerator::class => Container \ErrorResponseGeneratorFactory::class,
54+ RequestHandlerRunner::class => Container \RequestHandlerRunnerFactory::class,
55+ ResponseInterface::class => Container \ResponseFactoryFactory::class,
56+ SERVER_REQUEST_ERROR_RESPONSE_GENERATOR => Container \ServerRequestErrorResponseGeneratorFactory::class,
57+ ServerRequestInterface::class => Container \ServerRequestFactoryFactory::class,
58+ StreamInterface::class => Container \StreamFactoryFactory::class,
6059 ],
6160 ];
62- // @codingStandardsIgnoreEnd
6361 }
6462}
0 commit comments