2.0 KiB
2.0 KiB
Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
3.2.1 - 2018-10-15
Added
- Support for tuupola/callable-handler:^1.0 and tuupola/http-factory:^1.0
Changed
psr/http-message:^1.0.1
is now minimum requirement.
3.2.0 - 2018-08-07
Added
- Support for the stable version of PSR-17
3.1.0 - 2018-05-06
Added
- Option to trust
X-Forwarded-Proto
andX-Forwarded-Port
when detecting https requests.
3.0.0 - 2018-03-01
Changed
- Namespace changed from
Slim\Middleware
toTuupola\Middleware
- Middleware now uses only
Authorization
header from the PSR-7 request. BothPHP_AUTH_USER
andPHP_AUTH_PW
globals as well asHTTP_AUTHORIZATION
environment are now ignored. - The
callback
setting was renamed tobefore
. It is called before executing other middlewares in the stack. - The
passthrough
setting was renamed toignore
. - Public setter methods
addRule()
andwithRules()
are now immutable. - PSR-7 double pass is now supported via tuupola/callable-handler library.
- PHP 7.1 is now minimal requirement.
- Error callback now receives only response and arguments, request was removed.
- Before callback now receives only request and arguments, response was removed.
- After callback now receives only response and arguments, request was removed.
Added
- Support for the approved version of PSR-15.
- New
after
callback. It is called after executing other middlewares in the stack.
Removed
- Most setters and getters for settings. Pass settings in an array only during initialization.