Skip to content

Releases: zaphyr-org/router

v1.3.0

04 May 22:02
Compare
Choose a tag to compare

New:

  • Added 404 and 405 code to MethodNotAllowedException and NotFoundException classes
  • Added Route::getCallableName method

Fixed:

  • Added try-catch with RouteException to Route::process method
  • Route::getCallable now also checks whether a valid controller method has been set

v1.2.1

09 Feb 14:22
Compare
Choose a tag to compare

Fixed:

  • The getRoutes method of the Router class now also takes group routes into account
  • Route condition attributes now correctly overwrite group condition attributes

v1.2.0

08 Feb 18:11
Compare
Choose a tag to compare

New:

  • Added getRoutes method to Router class
  • Added matched route to the request attributes

v1.1.2

11 Nov 12:43
Compare
Choose a tag to compare

New:

  • Added .vscode/ to gitignore file

Changed:

  • Improved unit tests and moved tests to "Unit" or "Integration" directory

Removed:

  • Removed phpstan-phpunit from composer require-dev

v1.1.1

24 Oct 21:04
Compare
Choose a tag to compare

Changed:

  • Changed visibility to protected for tearDown and setUp methods in unit tests

Fixed:

  • Resolved #1; scheme and host parameters in the RouteConditionTrait are set to null by default
  • Resolved #2; Moved route condition handling to Dispatcher class

v1.1.0

13 Oct 15:43
Compare
Choose a tag to compare

New

  • Added setMiddleware method and marked setMiddlewares method as deprecated

Fixed

  • Removed .dist from phpunit.xml in .gitattributes export-ignore

Deprecated

  • Attributes $middlewares param will be renamed to $middleware in v2.0

v1.0.0

20 Sep 07:08
Compare
Choose a tag to compare

New:

  • First stable release version