Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Releases: oscarotero/psr7-middlewares

3.9.2

21 Dec 13:30
Compare
Choose a tag to compare

Removed storage option in ImageTransformer. Now this middleware needs to be combined with ReadResponse or any other that returns the response.

3.9.1

20 Dec 09:59
Compare
Choose a tag to compare
  • 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

17 Dec 11:50
Compare
Choose a tag to compare
  • 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

30 Nov 07:22
Compare
Choose a tag to compare

Fixed static methods used in some middlewares

3.8.0

29 Nov 23:52
Compare
Choose a tag to compare
  • New middleware: Honeypot
  • New middleware: Www
  • New middleware: DetectDevice
  • New middleware: Geolocate
  • New middleware: FormTimestamp

3.7.5

24 Nov 16:02
Compare
Choose a tag to compare
  • FormatNegotiator Added more formats supported by default: mp4, ogg, ogv, webm, webp and svg.

3.7.4

22 Nov 16:03
Compare
Choose a tag to compare

Fixed #9

3.7.3

19 Nov 01:01
Compare
Choose a tag to compare

Silenced exceptions throwed by ErrorHandler callback to avoid call it recursively.

3.7.2

05 Nov 19:39
Compare
Choose a tag to compare

Silenced exceptions throwed by FormatNegotiator. Related to willdurand/Negotiation#71

3.7.1

04 Nov 10:38
Compare
Choose a tag to compare
  • Allow to setting the redirect status code, for example: Middleware::trailingSlash()->redirect(302) (by @userlond )
  • Docs improvements (by @cxj and @jakejohns )