Releases: zendframework/zend-expressive
zend-expressive 2.1.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-expressive 3.0.0rc3
Added
- Nothing.
Changed
-
#579 updates the version constraint for zend-expressive-router to use 3.0.0rc4 or later.
-
#579 updates the version constraint for zend-stratigility to use 3.0.0rc1 or later.
Deprecated
- Nothing.
Removed
- #580 removes zend-diactoros as a requirement; all usages of it within the package are currently conditional on it being installed, and can be replaced easily with any other PSR-7 implementation at this time.
Fixed
- Nothing.
zend-expressive 3.0.0rc2
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- #578 fixes the version constraint used with zend-stratigility to allow it to update to later versions when released.
zend-expressive 3.0.0rc1
zend-expressive 3.0.0alpha9
Added
- #562 adds the class
Zend\Expressive\Response\ServerRequestErrorResponseGenerator, and maps it to theZend\Expressive\Container\ServerRequestErrorResponseGeneratorFactory. The class generates an error response when an exeption occurs producing a server request instance, and can be optionally templated.
Changed
-
#568 updates the zendframework/zend-stratigility dependency to require at least 3.0.0alpha4.
-
#568 updates the
ErrorHandlerFactoryto pull thePsr\Http\Message\ResponseInterfaceservice, which returns a factory capable of returning a response instance, and passes it to theZend\Stratigility\Middleware\ErrorHandlerinstance it creates, as that class changes in 3.0.0alpha4 such that it now expects a factory instead of an instance. -
#562 modifies the
Zend\Expressive\Container\RequestHandlerRunnerFactoryto depend on theZend\Expressive\Response\ServerRequestErrorResponseGeneratorservice instead of theZend\Expressive\SERVER_REQUEST_ERROR_RESPONSE_GENERATORvirtual service. -
#562 extracts most logic from
Zend\Expressive\Middleware\ErrorResponseGeneratorto a new trait,Zend\Expressive\Response\ErrorResponseGeneratorTrait. A trait was used as the classes consuming it are from different namespaces, and thus different inheritance trees. The trait is used by both theErrorResponseGeneratorand the newServerRequestErrorResponseGenerator.
Deprecated
- Nothing.
Removed
- #562 removes the constant
Zend\Expressive\SERVER_REQUEST_ERROR_RESPONSE_GENERATOR. It was only used internally previously.
Fixed
- Nothing.
zend-expressive 3.0.0alpha8
Added
- Nothing.
Changed
-
#559 reverts the changes performed for #556 to the
ApplicationFactory. It now uses the canonical service name for thePathBasedRoutingMiddlewareinstead of theROUTE_MIDDLEWAREconstant. -
#561 updates to zend-expressive-router 3.0.0alpha3.
-
#561 renames
Zend\Expressive\Container\ResponseFactorytoZend\Expressive\Container\ResponseFactoryFactory, and the factory now returns a callable that will return a zend-diactorosResponseinstance, instead of returning the instance itself. Each of the various services named after zend-expressive-router response constants were removed in favor of a singlePsr\Http\Message\ResponseInterfaceservice resolving to theResponseFactoryFactory. -
#561 modifies the
Zend\Expressive\Handler\NotFoundHandlerto compose a response factory instead of a response prototype. This approach allows it to use thePsr\Http\Message\ResponseInterfaceservice defined per the above note. -
#561 renames the
Zend\Expressive\Router\IMPLICIT_HEAD_MIDDLEWARE_STREAM_FACTORYservice toPsr\Http\Message\StreamInterface, as this is what zend-expressive-router now expects. -
#561 renames the
Zend\Expressive\ServerRequestFactoryservice toPsr\Http\Message\ServerRequestInterface. TheZend\Expressive\SERVER_REQUEST_FACTORYconstant now resolves to the interface name.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
zend-expressive 3.0.0alpha7
Added
- Nothing.
Changed
- #556 modifies the
ApplicationFactorysuch that it now uses theZend\Expressive\ROUTE_MIDDLEWAREconstant in order to retrieve theZend\Expressive\Router\Middleware\PathBasedRoutingMiddlewareinstance. This is done to help smooth upgrades from v2 to v3, as it prevents a manual step when updating theconfig/pipeline.php, and ensures that the instance composed in the application is the same instance piped to the application.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
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-7StreamInterfaceinstance using zend-diactoros. The stream produced is backed by aphp://tempstream. -
#551 and #554 add the following constants under the
Zend\Expressivenamespace:DEFAULT_DELEGATEcan be used to refer to the formerDefaultDelegateFQCN service.IMPLICIT_HEAD_MIDDLEWAREcan be used to refer to the formerZend\Expressive\Router\Middleware\ImplicitHeadMiddlewareservice.IMPLICIT_OPTIONS_MIDDLEWAREcan be used to refer to the formerZend\Expressive\Router\Middleware\ImplicitOPTIONSMiddlewareservice.NOT_FOUND_MIDDLEWAREcan be used to refer to the formerZend\Expressive\Middleware\NotFoundMiddlewareservice.NOT_FOUND_RESPONSEcan be used to refer to the formerZend\Expressive\Response\NotFoundResponseInterfaceservice.SERVER_REQUEST_ERROR_RESPONSE_GENERATORcan be used to refer to the formerZend\Expressive\ServerRequestErrorResponseGeneratorservice.SERVER_REQUEST_FACTORYcan be used to refer to the formerZend\Expressive\ServerRequestFactoryservice.
Changed
-
#551 updates dependencies to pin to zend-expressive-router 3.0.0alpha2 or later.
-
#551 renames
Zend\Expressive\Middleware\NotFoundMiddlewaretoZend\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
ApplicationConfigInjectionDelegatorto raise an exception if the callback passed to it does not produce anApplicationinstance, instead of returning the instance without changes. This allows developers to understand what they need to correct in their service configuration. -
#551 updates the
ConfigProviderto add entries for the following zend-expressive-router constants as follows:IMPLICIT_HEAD_MIDDLEWARE_RESPONSEmaps to theResponseFactory.IMPLICIT_HEAD_MIDDLEWARE_STREAM_FACTORYmaps to theStreamFactory.IMPLICIT_OPTIONS_MIDDLEWARE_RESPONSEmaps to theResponseFactory.
-
#554 updates the
ConfigProviderto add entries for the following constants as follows:IMPLICIT_HEAD_MIDDLEWAREaliases to theZend\Expressive\Router\Middleware\ImplicitHeadMiddlewareservice.IMPLICIT_OPTIONS_MIDDLEWAREaliases to theZend\Expressive\Router\Middleware\ImplicitOptionsMiddlewareservice.
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.
zend-expressive 3.0.0alpha5
Added
- Nothing.
Changed
-
#547 modifies the
ConfigProvider, theNotFoundMiddlewareFactory, and theRouteMiddlewareFactoryto remove the concept of the unsharedResponseInterfaceservice, as service sharing is not always configurable in container implementations. To resolve the ability to provide discrete instances, theConfigProviderdefines two new virtual services that each resolve to theZend\Expressive\Container\ResponseFactory:Zend\Expressive\Response\NotFoundResponseInterfaceZend\Expressive\Response\RouterResponseInterface
The related factories now consume these services in order to receive a response prototype for the services they produce.
-
#542 modifies the
composer.jsonto no longer suggest the pimple/pimple package, but rather the zendframework/zend-pimple-config package. -
#542 modifies the
composer.jsonto no longer suggest the aura/di package, but rather the zendframework/zend-auradi-config package.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-expressive 3.0.0alpha4
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
-
#549 modifies how the
ServerRequestFactoryFactoryreturns theServerRequestFactory::fromGlobals()mechanism, wrapping it in an anonymous function. This ensures compatibility across all containers. -
#550 fixes how the
ConfigProviderreferences theErrorResponseGenerator, using theZend\Expressive\Middlewarenamespace instead of theZend\Stratigility\Middlewarenamespace.