Skip to content

Releases: sunrise-php/http-router

v2.10.1

07 Oct 11:47
90cce9a
Compare
Choose a tag to compare
  • Minor changes.

v2.10.0

01 Oct 02:50
612067e
Compare
Choose a tag to compare
  • 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

23 Sep 22:18
3c42855
Compare
Choose a tag to compare
  • 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

03 Aug 09:19
e1642a2
Compare
Choose a tag to compare
  • The new Router::run() method with isolated matching logic (for example for error handling);
  • The new CallableMiddleware.

v2.7.0

10 May 06:43
74361b9
Compare
Choose a tag to compare
  • Removed return type hint for BadRequestException::getViolations().

v2.6.0

01 Feb 02:32
659b351
Compare
Choose a tag to compare
  • PHP8 attribute support;
  • Hosts support;
  • The InvalidAnnotationParameterException was marked deprecated;
  • The InvalidAnnotationSourceException was marked deprecated;
  • The AnnotationDirectoryLoader was marked deprecated (use DescriptorDirectoryLoader).

v2.5.0

26 Dec 09:39
a5fb1ce
Compare
Choose a tag to compare
  • PHP8 support.

v2.4.2

16 Jun 17:14
4a4ca41
Compare
Choose a tag to compare
  • PageNotFoundException was added;
  • Development dependencies was updated.

v2.4.1

29 May 18:05
4c94f68
Compare
Choose a tag to compare
  • Array support in Annotation for Route description (concatenation alternative).

v2.4.0

20 Apr 03:25
2b5089a
Compare
Choose a tag to compare
  • 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.