All notable changes to this project will be documented in this file, in reverse chronological order by release.
0.7.0 - 2020-10-29
- Allow installing with PHP 8 (#19).
- Cookie contents from debug log (#18).
0.6.0 - 2019-04-11
- Error handler now receives also the request object as parameter (#13).
$app->add(new Tuupola\Middleware\BrancaAuthentication([ "secret" => "supersecretkeyyoushouldnotcommit", "error" => function ($request, $response, $arguments) { ... } ]));
- Rules can now be a plain callable and they do not need to implement
RuleInterface
anymore (#12).
- Callables for before, after and error handlers are not assumed to be instance of a
Closure
(#16). - Cookie was ignored if if using
/(.*)/
as regexp and the configured header was missing from request (#17).
0.5.2 - 2019-01-09
- Support for tuupola/branca:^1.0 and ^2.0
0.5.1 - 2018-10-12
- Support for tuupola/callable-handler:^1.0 and tuupola/http-factory:^1.0
0.5.0 - 2018-08-07
- Support for the stable version of PSR-17
0.4.1 - 2018-04-05
- If rules were passed as an array to constructor they were ignored (#9).
0.4.0 - 2018-01-25
- Support for the approved version of PSR-15.
0.3.1 - 2017-12-29
- Moved
overtrue/phplint
to dev dependencies where it belongs.
0.3.0 - 2017-12-29
- PHP 7.1 is now minimal requirement.
- PSR-7 double pass is now supported via tuupola/callable-handler library.
- Error callback now receives only response and arguments, request was removed.
- Before callback now receives only requesr and arguments, response was removed.
- After callback now receives only response and arguments, request was removed.
- Tests are now run as PSR-15 middleware.
0.2.0 - 2017-12-06
- Support for the latest version of PSR-15.
- PHP 7.0 is now minimal requirement.
Initial realese. Supports both PSR-7 and PSR-15 style middlewares. Both have unit tests. However PSR-15 has not really been tested in production.