Repository navigation
v1.5.0
Added
Router\AllowedMethodsInterface— optional router capability:getAllowedMethods(string $uri): list<string>, the methods a path is routed for. Lets callers answer405 Method Not Allowedwith anAllowheader instead of404 Not Found. Implemented bysolophp/router3.5.
Changed
RouterInterface::match()documents the result routers actually return:middlewaresmay hold strings (ids the caller resolves, e.g. class names) as well as callables, andnameandattributesare optional keys. Code typed against the interface no longer needs a@varannotation to read them.RouterInterface::match()documents that method names are case-sensitive (RFC 9110) and that parameters are returned as they appear in the URI path, undecoded.RouterInterface: the array form of a handler is documented asarray{class-string, string}, and theaddRoute()options asgroup,middlewares,nameandattributes.WritableContainerInterfacedocuments that services are shared — the factory runs on the firstget()and later calls return the same instance — and that factories receive the container.
PHPDoc only: no signatures changed, existing implementations keep working.