- PSR-15
- PHP 7+ only due to PSR-15 constraint.
- Fixes webimpress/http-middleware-compatibility implementation.
- 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.
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
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