Releases: oscarotero/psr7-middlewares
3.9.2
Removed storage option in ImageTransformer
. Now this middleware needs to be combined with ReadResponse
or any other that returns the response.
3.9.1
- The callable executed by
Middleware::create()
receives the request and response as parameters - The middlewares with
basePath
option wont be executed if the base path does not match - Fixed
ImageTransformers::sizes()
that returned null
3.9.0
-
New middleware: Rename
-
New middleware: LeagueRoute
-
New middleware: ImageTransformer
-
Fixed Debugbar: do not insert in ajax responses
-
Fixed Honeypot and FormTimestamp detecting forms with attributes with simple quotes.
-
Created
Utils\Path
, to improve the work with paths -
Converted protected properties and methods to private
-
Removed the dependency of container-interop (#11)
-
Added the static method
Middleware::create()
that allows to create middleware using a proxy -
Removed the middleware When, use
Middleware::create()
instead://before, with Middleware::when() Middleware::when(getenv('ENV') === 'production')->middleware(Middleware::minify()); //now Middleware::create(function () { return getenv('ENV') === 'production' ? Middleware::minify() : false; })
3.8.1
Fixed static methods used in some middlewares
3.8.0
- New middleware: Honeypot
- New middleware: Www
- New middleware: DetectDevice
- New middleware: Geolocate
- New middleware: FormTimestamp
3.7.5
- FormatNegotiator Added more formats supported by default: mp4, ogg, ogv, webm, webp and svg.
3.7.4
3.7.3
Silenced exceptions throwed by ErrorHandler callback to avoid call it recursively.
3.7.2
Silenced exceptions throwed by FormatNegotiator. Related to willdurand/Negotiation#71
3.7.1
- Allow to setting the redirect status code, for example:
Middleware::trailingSlash()->redirect(302)
(by @userlond ) - Docs improvements (by @cxj and @jakejohns )