zend-stratigility 2.2.0
Added
-
#140 adds the class
Zend\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 theZend\Stratigility\middleware()
utility function to generate the instance:middleware($callable)
. -
#140 adds the class
Zend\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 theZend\Stratigility\doublePassMiddleware()
utility function to generate the instance:doublePassMiddleware($callable, $response)
. -
#140 adds the class
Zend\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 theZend\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
-
#140 deprecates the class
Zend\Stratigility\Route
. This class is an internal detail, and will be removed in version 3.0.0. -
#140 deprecates the class
Zend\Stratigility\Exception\InvalidMiddlewareException
. This class will be removed in version 3.0.0 as it will no longer be necessary due to typehint usage. -
#140 deprecates the class
Zend\Stratigility\Exception\InvalidRequestTypeException
as it is no longer used by the package. It will be removed in version 3.0.0. -
#140 deprecates the class
Zend\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 classZend\Stratigility\Middleware\CallableMiddlewareDecorator
, or the utility functionmiddleware()
, to decorate callable standards-signature middleware. -
#140 deprecates the class
Zend\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 classZend\Stratigility\Middleware\DoublePassMiddlewareDecorator
, or the utility functiondoublePassMiddleware()
, to decorate callable double pass middleware. -
#140 deprecates the class
Zend\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. -
#140 deprecates the class
Zend\Stratigility\NoopFinalHandler
as the class will be removed starting in version 3.0.0. -
#140 deprecates the two-argument form of
Zend\Stratigility\MiddlewarePipe::pipe()
. If you need to perform path segregation, use theZend\Stratigility\Middleware\PathMiddlewareDecorator
class and/or theZend\Stratigility\path()
function to decorate your middleware in order to provide path segregation. -
#140 deprecates the piping of double pass middleware directly to
pipe()
; decorate your double-pass middleware usingZend\Stratigility\Middleware\DoublePassMiddleware
orZend\Stratigility\doublePassMiddleware()
prior to piping. -
#159 deprecates
Zend\Stratigility\MiddlewarePipe::setCallableMiddlewareDecorator()
. UseZend\Stratigility\doublePassMiddleware()
orZend\Stratigility\Middleware\DoublePassMiddleware
prior to passing your double-pass middleware toMiddlewarePipe::pipe()
. -
#159 deprecates
Zend\Stratigility\MiddlewarePipe::setResponsePrototype()
. This was used only to seed an instance ofZend\Stratigility\Middleware\CallableMiddlewareWrapperFactory
previously; pass your response prototype directly to a new instance ofZend\Stratigility\Middleware\DoublePassMiddleware
or the ``Zend\Stratigility\doublePassMiddleware()` function instead. -
#159 deprecates
Zend\Stratigility\MiddlewarePipe::hasResponsePrototype()
.
Removed
- Nothing.
Fixed
- Nothing.