Skip to content

Releases: sunrise-php/http-router

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.

v2.3.0

17 Mar 21:46
f3ac5e9
Compare
Choose a tag to compare
  • Named patterns (for example: {id<@uuid>}).

v2.2.0

09 Feb 11:07
65a909e
Compare
Choose a tag to compare
  • Load routes from a folder for the CollectableFileLoader;
  • (dev) Update dependency sunrise/http-message to v1.2.0.

v2.1.0

08 Jan 15:47
7c92198
Compare
Choose a tag to compare
  • new exception BadRequestException ;
  • new exception UnsupportedMediaTypeException;
  • update dependency phpunit/phpunit to v7.5.20;

v2.0.2

06 Jan 06:45
e74eb26
Compare
Choose a tag to compare
  • store requested route instance in the request instance (may be useful, for example, for middleware...);

v2.0.1

26 Dec 11:40
265dbb3
Compare
Choose a tag to compare
  • (dev) Pin dependency sunrise/http-message to 1.0.16
  • (dev) Update dependency phpunit/phpunit to v7.5.18

v2.0.0

26 Dec 11:21
b56a067
Compare
Choose a tag to compare
  • Routes implement RequestHandlerInterface and not MiddlewareInterface
  • The route collection is not a factory
  • And many more new features...

v1.0.14

20 May 11:42
85837a0
Compare
Choose a tag to compare
  • MethodNotAllowedException->getAllowedMethodsAsString()
  • Update dependency phpunit/phpunit to v7.5.11

v1.0.13

25 Mar 21:24
4ad4019
Compare
Choose a tag to compare
  • New buildRegex method for Route
  • Update dependency sunrise/http-server-request to v1.0.11
  • Update dependency phpunit/phpunit to v7.5.7

v1.0.12

10 Feb 23:55
0aa40ee
Compare
Choose a tag to compare
  • Update dependency sunrise/http-server-request to v1.0.9