Repository navigation
v2.0.0
Breaking Changes
-
Router Dependency Injection: Router now injected via constructor instead of extending
RouteCollector- Application no longer extends
RouteCollector- add routes directly to router instance - Constructor now requires
RouterInterfaceas first parameter
- Application no longer extends
-
Router Interface: Uses
Solo\Contracts\Router\RouterInterfacefor flexibilitysolophp/routermoved to suggested dependencies- Supports any router implementation
-
Request Attributes Changed:
routeattribute replaced withhandlerandparamsmiddlewarekey renamed tomiddlewares
-
Middleware Validation: Now requires
MiddlewareInterfaceimplementation
New Features
- Default CORS Handler: Built-in
CorsHandlerclass with configurable origins, methods, headers, credentials, and cache duration
Dependencies
- Added:
solophp/contracts: ^1.0,psr/http-server-middleware: ^1.0 - Changed:
solophp/routernow optional (suggested)