3.9 KiB
3.9 KiB
Change Log
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.11.1 - 2017-05-06
Changed
-
Middlewares\Utils\CallableHandler
expects one of the following values returned by the callable:- A
Psr\Http\Message\ResponseInterface
null
or scalar- an object with
__toString
method implemented
Otherwise, throws an
UnexpectedValueException
- A
-
Middlewares\Helpers::fixContentLength
only modifies or removes theContent-Length
header, but does not add it if didn't exist previously.
0.11.0 - 2017-03-25
Added
- New class
Middlewares\Utils\Helpers
with common helpers to manipulate PSR-7 messages - New helper
Middlewares\Utils\Helpers::fixContentLength
used to add/modify/remove theContent-Length
header of a http message.
Changed
- Updated
http-interop/http-factory
to0.3
0.10.1 - 2017-02-27
Fixed
- Fixed changelog file
0.10.0 - 2017-02-27
Changed
- Replaced deprecated
container-interop
bypsr/contaienr
(PSR-11). Middlewares\Utils\Dispatcher
throws exceptions if the middlewares does not implementInterop\Http\ServerMiddleware\MiddlewareInterface
or does not return an instance ofPsr\Http\Message\ResponseInterface
.- Moved the default factories to
Middlewares\Utils\Factory
namespace. - Minor code improvements.
0.9.0 - 2017-02-05
Added
- Callable resolves to create callables from various representations
Removed
Middlewares\Utils\CallableHandler::resolve
0.8.0 - 2016-12-22
Changed
- Updated
http-interop/http-middleware
to0.4
- Updated
friendsofphp/php-cs-fixer
to2.0
0.7.0 - 2016-12-06
Added
- New static helper
Middlewares\Utils\Dispatcher::run
to create and dispatch a request easily
0.6.1 - 2016-12-06
Fixed
- Ensure that the body of the serverRequest is writable and seekable.
0.6.0 - 2016-12-06
Added
- ServerRequest factory
Middlewares\Utils\Dispatcher
acceptsClosure
as middleware components
Changed
Middlewares\Utils\Dispatcher
creates automatically a response if the stack is exhausted
0.5.0 - 2016-11-22
Added
Middlewares\Utils\CallableMiddleware
class, to create middlewares from callablesMiddlewares\Utils\Dispatcher
class, to execute the middleware stack and return a response.
0.4.0 - 2016-11-13
Changed
- Updated
http-interop/http-factory
to0.2
0.3.1 - 2016-10-03
Fixed
- Bug in CallableHandler that resolve to the declaring class of a method instead the final class.
0.3.0 - 2016-10-03
Added
Middlewares\Utils\CallableHandler
class, allowing to resolve and execute callables safely.
0.2.0 - 2016-10-01
Added
- Uri factory
0.1.0 - 2016-09-30
Added
- Response factory
- Stream factory