Skip to content

Releases: skipperbent/simple-php-router

Version 4.0.0.9

30 Mar 03:24
36388f0
Compare
Choose a tag to compare
  • Fixed Url not outputting correct class when used in json_encode.
  • Fixed IInputItem being too strict about strings which may be nullable.

Version 4.0.0.11

30 Mar 04:48
bd033d9
Compare
Choose a tag to compare
  • Fixed getName method in LoadableRoute class can contain nullable value.
  • Updated helpers.php.

Version 4.0.0.10

30 Mar 03:38
5bae3ff
Compare
Choose a tag to compare
  • Fixed getError in InputFile returning string instead of int.

Version 4.0.0.8

29 Mar 21:49
d2d3938
Compare
Choose a tag to compare
  • Fixed getting specific input-value by request-method in InputHandler class.
  • Added .idea files

Version 4.0.0.7

29 Mar 21:29
1d6a2fa
Compare
Choose a tag to compare
  • Removed namespace from groups

Version 4.0.0.6

29 Mar 21:14
e97e624
Compare
Choose a tag to compare
  • Fixed rewrite from ExceptionHandler sometimes not working correctly.
  • Fixed default-namespace for Group and partial groups.

Version 4.0.0.5

29 Mar 20:36
30d2285
Compare
Choose a tag to compare
  • Updated input helper function.
  • Update documentation to reflect v4 changes in InputHandler class.

Version 4.0.0.4

29 Mar 20:18
87e1fa3
Compare
Choose a tag to compare
  • Fixed $methods argument not properly passed in InputHandler class.
  • Updated helpers.php with latest changes.

Version 4.0.0.3

29 Mar 19:45
555afd0
Compare
Choose a tag to compare
  • Fixed issue with wrong defaultValue used in getValue method in InputHandler class.

Version 4.0.0.2

29 Mar 19:34
32e5dd6
Compare
Choose a tag to compare

Version 4.0.0.0

WARNING: This release is experimental. Upgrade with caution.

  • PHP 7 support. This version of the library requires PHP version 7.1 or higher.
  • request()->getInput() renamed to request()->getInputHandler().
  • \Pecee\Http\Input\Input class renamed to Pecee\Http\Input\InputHandler.
  • Added contains($value) method to Url class.
  • Added indexOf($value) method to Url class.
  • Router now stores all loaded routes if multiple routes has been rendered.
  • Added method for getting all loaded routes by calling SimpleRouter::request()->getLoadedRoutes().
  • Removed setLoadedRoute($route) method from Request class and replaced it with addLoadedRoute($route).
  • Added debug helper: SimpleRouter::startDebug().
  • Added logging to router.
  • Started to implement logging in router.
  • Simplified rewrite handling in Router class.
  • Added debug($message, ...$args), getDebugLog() and setDebugEnabled($bool) methods to Router class.
  • Updated unit-tests.
  • Updated phpDocs.
  • Updated documentation to reflect new changes.
  • Added dependency injection support.
  • Better usage of Url class. When calling url you can now use the methods on the Url class to filter params, get relative/absolute url etc. See documentation for more info.
  • Updated helpers.php and helpers example in documentation.
  • MalformedUrlException is now handled properly by Router to avoid phpStorm syntax highlights in routes.
  • Added getUrlCopy to Request class, used to clone the current route (to keep domain etc.)
  • setUrl in Request are now strict and requires Url object and no longer accepts strings.
  • Renamed hasRewrite property to hasPendingRewrite in Request class.
  • Renamed hasRewrite and setHasRewrite methods to hasPendingRewrite and setHasPendingRewrite in Request class.
  • Renamed get method to getValue in InputHandler class.
  • Renamed getObject to get and removed $defaultValue argument in InputHandler class.
  • Optimized InputHandler class.
  • Fixed issue with $token not being proper string in BaseCsrfVerifier when token is not found.
  • Added php.ini configuration settings to setcookie in CookieTokenProvider for improved security.
  • Added $router parameter to boot method in IRouterBootManager which allows for further manipulation of the router within the bootmanager.
  • Renamed $processingRoute property to $isProcessingRoute in Router class.
  • Fixed reset method not resetting CSRF-verifier in Router class.
  • Moved arrayToParams helper-method from Router to Url class.
  • Began to add Event-functionality to router.
  • Added addEventHandler method to SimpleRouter class.
  • Moved Pecee\SimpleRouter\Handler\CallbackExceptionHandler to Pecee\SimpleRouter\Handlers\CallbackExceptionHandler.
  • Moved Pecee\SimpleRouter\Handler\IExceptionHandler to Pecee\SimpleRouter\Handlers\IExceptionHandler.
  • Added Events section to documentation.
  • Added more information on url-handling in documentation.
  • Added event-arguments data.
  • Added event-arguments to the event list in documentation.
  • Fixed missing exceptions thrown in phpDocs.
  • Added unit-tests for new event functionality.
  • Added unit-tests for dependency injection functionality.
  • Added ClassLoader class and IClassLoader interface.
  • Added php-di composer dependency.
  • Optimisations.
  • Added donate section to documentation.
  • Updated readme.