Releases: harikt/psr7-asset
Releases · harikt/psr7-asset
PSR-17 Final
PSR-15 Final
- PSR-15 accepted proposal.
- PHP 7+ due to PSR-15 constraint.
0.3.1
0.3.0
- Updated http-interop dependencies via webimpress/http-middleware-compatibility PR #25 .
- Fixed HeaderSecurity Exception when mime type isn't registered when no extension is registered. Currently using
application/octet-stream
as the default mime-type . - Thank you @basz for both PR's.
0.2.0
Added
AssetLocator
class added to add / manipulate asset names and location- Exception
PathNotFound
added. - Added phpunit as require-dev dependency.
- Added CallbackStream which is copied from https://github.com/zendframework/zend-diactoros/blob/83e8d98b9915de76c659ce27d683c02a0f99fa90/src/CallbackStream.php
- Added https://github.com/http-interop/http-factory, so can work with any psr-7 implementations.
- Added Router class which can be configured with regx which can be injected to AssetAction if needed.
- Added
Hkt\Psr7Asset\Container\AssetConfig
class and removed the example class. - Updated Readme
BC BREAK
AssetService
now acceptsAssetLocator
instead of array as first constructor argument- Removed
setRouteRegx
method fromAssetAction
- If file is not found, the 404 response is no longer send, delegates to next middleware or the final handler.
Initial release 0.1
update readme