Releases: woohoolabs/harmony
Releases · woohoolabs/harmony
3.0.1
ADDED:
- Getters for
MethodNotAllowed
,MiddlewareNotExists
andRouteNotFound
exceptions - Exception message for
MethodNotAllowed
andRouteNotFound
exceptions
3.0.0
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 withHarmony::removeMiddleware()
- Renamed
MiddlewareInterface
toHarmonyMiddlewareInterface
FIXED:
@return
PHPDoc comments for middleware were missingDiactorosResponderMiddleware
usesSapiEmitter
by defaultDiactorosResponderMiddleware
used to be only usable as a final middleware
2.3.1
2.3.0
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
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
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
FIXED:
- Final middlewares could invoke all the remaining middlewares
2.0.0
Fixed dispatcher check
2.0.0-beta1
Fixed typo
1.0.1
Updated changelog for 1.0.1