zend-expressive 3.0.0alpha6
Added
-
#551 and #553 add
Zend\Expressive\Container\StreamFactoryFactory
, for producing an callable capable of producing an empty, writable PSR-7StreamInterface
instance using zend-diactoros. The stream produced is backed by aphp://temp
stream. -
#551 and #554 add the following constants under the
Zend\Expressive
namespace:DEFAULT_DELEGATE
can be used to refer to the formerDefaultDelegate
FQCN service.IMPLICIT_HEAD_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Router\Middleware\ImplicitHeadMiddleware
service.IMPLICIT_OPTIONS_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Router\Middleware\ImplicitOPTIONSMiddleware
service.NOT_FOUND_MIDDLEWARE
can be used to refer to the formerZend\Expressive\Middleware\NotFoundMiddleware
service.NOT_FOUND_RESPONSE
can be used to refer to the formerZend\Expressive\Response\NotFoundResponseInterface
service.SERVER_REQUEST_ERROR_RESPONSE_GENERATOR
can be used to refer to the formerZend\Expressive\ServerRequestErrorResponseGenerator
service.SERVER_REQUEST_FACTORY
can be used to refer to the formerZend\Expressive\ServerRequestFactory
service.
Changed
-
#551 updates dependencies to pin to zend-expressive-router 3.0.0alpha2 or later.
-
#551 renames
Zend\Expressive\Middleware\NotFoundMiddleware
toZend\Expressive\Handler\NotFoundHandler
, which allows it to be used as a PSR-15 request handler, and, when piped or routed to, also as middleware. The original class name was aliased to the renamed class in theConfigProvider
. -
#551 modifies the
ApplicationConfigInjectionDelegator
to raise an exception if the callback passed to it does not produce anApplication
instance, instead of returning the instance without changes. This allows developers to understand what they need to correct in their service configuration. -
#551 updates the
ConfigProvider
to add entries for the following zend-expressive-router constants as follows:IMPLICIT_HEAD_MIDDLEWARE_RESPONSE
maps to theResponseFactory
.IMPLICIT_HEAD_MIDDLEWARE_STREAM_FACTORY
maps to theStreamFactory
.IMPLICIT_OPTIONS_MIDDLEWARE_RESPONSE
maps to theResponseFactory
.
-
#554 updates the
ConfigProvider
to add entries for the following constants as follows:IMPLICIT_HEAD_MIDDLEWARE
aliases to theZend\Expressive\Router\Middleware\ImplicitHeadMiddleware
service.IMPLICIT_OPTIONS_MIDDLEWARE
aliases to theZend\Expressive\Router\Middleware\ImplicitOptionsMiddleware
service.
Deprecated
- Nothing.
Removed
-
#551 removes
Zend\Expressive\Container\RouteMiddlewareFactory
, as zend-expressive-router now provides a factory for the middleware. -
#551 removes
Zend\Expressive\Container\DispatchMiddlewareFactory
, as zend-expressive-router now provides a factory for the middleware. -
#551 removes
Zend\Expressive\Middleware\ImplicitHeadMiddleware
, as it is now provided by the zend-expressive-router package. -
#551 removes
Zend\Expressive\Middleware\ImplicitOptionsMiddleware
, as it is now provided by the zend-expressive-router package.
Fixed
- Nothing.