Woohoolabs Harmony Versions Save

A simple and flexible PHP middleware dispatcher based on PSR-7, PSR-11, and PSR-15

3.0.0

8 years ago

ADDED:

  • Support for conditional middleware
  • Some basic built-in conditions (e.g.: ExactPathCondition)
  • Support for PHPUnit 5.0

CHANGED:

  • #8: Use StyleCI for CS checks
  • #9: Improved Travis config
  • Middleware returning null will throw MiddlewareWrongReturnType
  • Providing an ID for middleware became optional
  • Exception names became shorter
  • A MiddlewareNotFound exception will be thrown when removing a non-existent middleware with Harmony::removeMiddleware()
  • Renamed MiddlewareInterface to HarmonyMiddlewareInterface

FIXED:

  • @return PHPDoc comments for middleware were missing
  • DiactorosResponderMiddleware uses SapiEmitter by default
  • DiactorosResponderMiddleware used to be only usable as a final middleware

2.3.1

8 years ago

CHANGED:

  • #7: Removed unnecessary terminated property
  • Improved tests

2.3.0

8 years ago

CHANGED:

  • #5: Return a Response object for all the middlewares
  • Deprecated middlewares returning null
  • Middlewares must return a ResponseInterface instance, otherwise an exception will be thrown
  • Running tests on PHP 5.6 (code style) and PHP 7 (PHPUnit) instead of PHP 5.5 and PHP 5.6
  • Improved test coverage

2.2.0

8 years ago

The release contains breaking changes

ADDED:

  • Support for multiple final middlewares
  • Configuration option for DiactorosResponderMiddleware to not respond when headers have already been sent
  • Added middlewares to support output buffering
  • Example application

CHANGED:

  • Final middlewares are integrated with the normal ones

FIXED:

  • PHP version constraint in composer.json to correctly support PHP 7

2.1.0

8 years ago

CHANGED:

  • Made the ServerRequestInterface attribute name storing the request handler configurable
  • Simplified router definition of invokable controller classes
  • Improved and more extensive documentation

FIXED:

  • Made default middlewares compatible with other frameworks

2.0.1

8 years ago

FIXED:

  • Final middlewares could invoke all the remaining middlewares

2.0.0

8 years ago

2.0.0-beta1

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago