Laminas Stratigility v2.2.0 Release Notes
Release Date: 2018-03-12 // about 6 years ago-
โ Added
zendframework/zend-stratigility#140 adds the class
Laminas\Stratigility\Middleware\CallableMiddlewareDecorator
for the purpose of decorating callable, standards-signature middleware for use with aMiddlewarePipe
instance. Instantiate it directly, passing the callable middleware as the sole argument, or use theLaminas\Stratigility\middleware()
utility function to generate the instance:middleware($callable)
.zendframework/zend-stratigility#140 adds the class
Laminas\Stratigility\Middleware\DoublePassMiddlewareDecorator
for the purpose of decorating callable, double-pass middleware for use with aMiddlewarePipe
instance. Instantiate it directly, passing the callable middleware and a response instance as arguments, or use theLaminas\Stratigility\doublePassMiddleware()
utility function to generate the instance:doublePassMiddleware($callable, $response)
.zendframework/zend-stratigility#140 adds the class
Laminas\Stratigility\Middleware\PathMiddlewareDecorator
for the purposes of creating path-segregated middleware. The constructor expects a string path literal as the first argument, and anInterop\Http\Server\MiddlewareInterface
instance for the second argument. Alternately, use theLaminas\Stratigility\path()
utility function to generate the instance:path('/foo', $middleware)
.
This decorator class replaces usage of the
$path
argument toMiddlewarePipe::pipe()
, and should be used to ensure your application is forwards-compatible with the upcoming version 3 release.๐ Changed
- Nothing.
๐ Deprecated
๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Route
. This class is an internal detail, and will be removed in version 3.0.0.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Exception\InvalidMiddlewareException
. This class will be removed in version 3.0.0 as it will no longer be necessary due to typehint usage.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Exception\InvalidRequestTypeException
as it is no longer used by the package. It will be removed in version 3.0.0.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Middleware\CallableInteropMiddlewareWrapper
as it is based on interfaces that will no longer be used starting in version 3.0.0. It will be removed in version 3.0.0. Please use the new classLaminas\Stratigility\Middleware\CallableMiddlewareDecorator
, or the utility functionmiddleware()
, to decorate callable standards-signature middleware.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Middleware\CallableMiddlewareWrapper
as it is based on interfaces that will no longer be used starting in version 3.0.0. It will be removed in version 3.0.0. Please use the new classLaminas\Stratigility\Middleware\DoublePassMiddlewareDecorator
, or the utility functiondoublePassMiddleware()
, to decorate callable double pass middleware.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\Middleware\CallableMiddlewareWrapperFactory
as the class it is associated will be removed starting in version 3.0.0. The class will be removed in version 3.0.0.๐ zendframework/zend-stratigility#140 deprecates the class
Laminas\Stratigility\NoopFinalHandler
as the class will be removed starting in version 3.0.0.๐ zendframework/zend-stratigility#140 deprecates the two-argument form of
Laminas\Stratigility\MiddlewarePipe::pipe()
. If you need to perform path segregation, use theLaminas\Stratigility\Middleware\PathMiddlewareDecorator
class and/or theLaminas\Stratigility\path()
function to decorate your middleware in order to provide path segregation.๐ zendframework/zend-stratigility#140 deprecates the piping of double pass middleware directly to
pipe()
; decorate your double-pass middleware usingLaminas\Stratigility\Middleware\DoublePassMiddleware
orLaminas\Stratigility\doublePassMiddleware()
prior to piping.๐ zendframework/zend-stratigility#159 deprecates
Laminas\Stratigility\MiddlewarePipe::setCallableMiddlewareDecorator()
. UseLaminas\Stratigility\doublePassMiddleware()
orLaminas\Stratigility\Middleware\DoublePassMiddleware
prior to passing your double-pass middleware toMiddlewarePipe::pipe()
.๐ zendframework/zend-stratigility#159 deprecates
Laminas\Stratigility\MiddlewarePipe::setResponsePrototype()
. This was used only to seed an instance ofLaminas\Stratigility\Middleware\CallableMiddlewareWrapperFactory
previously; pass your response prototype directly to a new instance ofLaminas\Stratigility\Middleware\DoublePassMiddleware
or the `Laminas\Stratigility\doublePassMiddleware()
function instead.๐ zendframework/zend-stratigility#159 deprecates
Laminas\Stratigility\MiddlewarePipe::hasResponsePrototype()
.
โ Removed
- Nothing.
๐ Fixed
- Nothing.