- Update dynamic route parsing
- Add support for response builder results
- Fix issue with chained constructor calls in service resolving
- Update interface for
ReactPhpRunner
- Updated packages
- Added new services:
LoggerProviderServiceandRequestProviderService
- Updated packages
- Moved DTO resolution logic into its own service
- Updated packages
- Fix issue with uninitialized class property
- Updated project files
- Implemented CORS middleware
- Use fruitcake/php-cors fork
- Started work on CORS middleware
- Log request method
- Updated packages
- Refactored runner traits into their own namespace
- Refactored middlewares into their own namespace
- Current request is now added as a service and removed afterwards
- Moved middlewares to ReactPhpRunner for cleaner separation of concerns
- Added StaticFileServerMiddleware to handle static file requests
handleInternalServerErrornow receives the thrown exception, if any
- Added request hooks you can override to modify the request or response while it is processed and to stuff after the response is sent
- Made
MinirouterimplementLoggerAwareInterfaceso it can be used more versatile - Improved support for enhanced sinks in
RequestLoggerMiddleware - Added handler for unprocessable entities (mostly DTOs where some parameters cannot be resolved) in
Minirouter - Moved
buildback toMiniphoxBaseso inheritors can use it
- Expose
GenericSetfor middlewares inReactPhpRunnertrait
- Expose source array set for middlewares
- Split runner methods into traits and provide default
Miniphoxclass - Move logging to
Miniphox - Added experimental
FrankenPhpRunner
- Also handle exceptions while resolving the route handler
- Don't register constructors or destructors
- Added ability to register DTOs, which can be filled using request bodies
- Added RequestJsonBodyParserMiddleware
- Added ability to mount controllers
- Pass all args to process
- Initialize routeMap with methods key for index-level routes
- Changed API for mount and watch and refactored file collection method
- Turn watchable files collector into local function and added TODO for better file watching
- Added file watching
- Updated dependencies
- Updated usage of Console::table
- Updated dependencies
- Use Elephox HTTP attributes
- Extracted router logic into own class
- Updated docs and dependencies
- Rename project to elephox/miniphox-framework
- Pin elephox/framework to 0.7
- Redirect to sleep endpoint instead of 404
- Decluttered Miniphox and moved logging to middleware
- Initial release