Releases: sunrise-php/http-router
Releases · sunrise-php/http-router
v2.10.0
- New abstract layer, used in the collector and loaders, for resolving request handlers and middlewares;
- The route attribute is merged with the route annotation;
- The route annotation/attribute can be attached to class methods;
- The descriptor loader can accept class names;
- Many code and test improvements.
v2.9.0
- Objects resolving passed through the collector (#30 #71);
- A new CLI command
RouteListCommand
(#72);
- Router builder (#73);
- Hosts logic improved;
- Ability to set 1 verb only in the annotation.
v2.8.0
- The new
Router::run()
method with isolated matching logic (for example for error handling);
- The new
CallableMiddleware
.
v2.7.0
- Removed return type hint for
BadRequestException::getViolations()
.
v2.6.0
- PHP8 attribute support;
- Hosts support;
- The
InvalidAnnotationParameterException
was marked deprecated;
- The
InvalidAnnotationSourceException
was marked deprecated;
- The
AnnotationDirectoryLoader
was marked deprecated (use DescriptorDirectoryLoader
).
v2.4.2
PageNotFoundException
was added;
- Development dependencies was updated.
v2.4.1
- Array support in Annotation for Route description (concatenation alternative).
v2.4.0
- The router match logic was changed (see #50);
- The following properties were added for the route:
summary
, description
and tags
;
Loader::attachArray()
was added;
MethodNotAllowedException::getJoinedAllowedMethods()
was added;
UnsupportedMediaTypeException::getJoinedSupportedTypes()
was added.